|
@@ -837,6 +837,10 @@ public class RoomServiceImpl implements RoomService {
|
|
}else if (data.getAccompanimentOn() != null) {
|
|
}else if (data.getAccompanimentOn() != null) {
|
|
typeEnum = DeviceTypeEnum.MusicScoreAccompaniment;
|
|
typeEnum = DeviceTypeEnum.MusicScoreAccompaniment;
|
|
enable = data.getAccompanimentOn();
|
|
enable = data.getAccompanimentOn();
|
|
|
|
+ if(enable){
|
|
|
|
+ //保存伴奏音量
|
|
|
|
+ roomDao.updateSoundVolumeById(roomId,data.getSoundVolume());
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
throw new ApiException(ErrorEnum.ERR_REQUEST_PARA_ERR);
|
|
throw new ApiException(ErrorEnum.ERR_REQUEST_PARA_ERR);
|
|
}
|
|
}
|
|
@@ -877,6 +881,7 @@ public class RoomServiceImpl implements RoomService {
|
|
DeviceStateChangedMessage deviceResourceMessage = new DeviceStateChangedMessage(typeEnum.ordinal(), enable);
|
|
DeviceStateChangedMessage deviceResourceMessage = new DeviceStateChangedMessage(typeEnum.ordinal(), enable);
|
|
deviceResourceMessage.setMusicScoreAccompanimentId(data.getMusicScoreAccompanimentId());
|
|
deviceResourceMessage.setMusicScoreAccompanimentId(data.getMusicScoreAccompanimentId());
|
|
deviceResourceMessage.setUserId(userId);
|
|
deviceResourceMessage.setUserId(userId);
|
|
|
|
+ deviceResourceMessage.setSoundVolume(data.getSoundVolume());
|
|
imHelper.publishMessage(authUser.getId().toString(), roomId, deviceResourceMessage, 1);
|
|
imHelper.publishMessage(authUser.getId().toString(), roomId, deviceResourceMessage, 1);
|
|
}else {
|
|
}else {
|
|
String ticket = IdentifierUtils.uuid();
|
|
String ticket = IdentifierUtils.uuid();
|