修复bug2

This commit is contained in:
2026-04-01 17:42:14 +08:00
parent 539caa4b5f
commit 5813425be9
9 changed files with 34 additions and 28 deletions

View File

@ -123,8 +123,8 @@ public class WebVideoController extends BaseController {
* 删除语音文件
*/
@GetMapping("/deleteAudioFile")
public R<Void> deleteAudioFile(Long fileId,Long deviceId) {
return audioProcessService.deleteAudioFile(fileId,deviceId);
public R<Void> deleteAudioFile(Long id) {
return audioProcessService.deleteAudioFile(id);
}
/**

View File

@ -38,6 +38,7 @@ public class WebDeviceHBY100JController extends BaseController {
*/
@PostMapping("/updateVoice")
public R<Void> updateVoice(@RequestBody HBY100JUpdateVoiceDto dto) {
dto.setCommunicationMode(0);
deviceHBY100JBizService.updateVoice(dto);
return R.ok();
}

View File

@ -166,7 +166,7 @@ public class DeviceHBY100JBizService {
if(StringUtils.isNotBlank(voicePlayStatus)){
FuncType6VoicePlayRequest funcType6VoicePlayRequest = JSONObject.parseObject(voicePlayStatus, FuncType6VoicePlayRequest.class);
if(funcType6VoicePlayRequest.getData() != null){
vo.setVolume(funcType6VoicePlayRequest.getData().getVoiceBroadcast());
vo.setVoiceBroadcast(funcType6VoicePlayRequest.getData().getVoiceBroadcast());
}
}