|
@@ -184,8 +184,11 @@ public class SoundCompareHandler implements WebSocketEventHandler {
|
|
|
}
|
|
|
break;
|
|
|
case VIDEO_UPDATE:
|
|
|
- if(bodyObject.containsKey("filePath")){
|
|
|
- SysMusicCompareRecord update = sysMusicCompareRecordService.get(userSoundInfoMap.get(phone).getRecordId());
|
|
|
+ SysMusicCompareRecord update = null;
|
|
|
+ if(bodyObject.containsKey("recordId")){
|
|
|
+ update = sysMusicCompareRecordService.get(bodyObject.getLong("recordId"));
|
|
|
+ }
|
|
|
+ if(Objects.nonNull(update)&&bodyObject.containsKey("filePath")){
|
|
|
update.setVideoFilePath(bodyObject.getString("filePath"));
|
|
|
sysMusicCompareRecordService.update(update);
|
|
|
}
|