修复网页语音对讲

This commit is contained in:
648540858
2024-10-23 15:20:34 +08:00
parent cb39593a79
commit 93de123330
6 changed files with 77 additions and 24 deletions

View File

@@ -211,7 +211,7 @@ public class PlayController {
if (device == null) {
throw new ControllerException(ErrorCode.ERROR400.getCode(), "未找到设备: " + deviceId);
}
DeviceChannel channel = deviceChannelService.getOneForSource(device.getId(), channelId);
DeviceChannel channel = deviceChannelService.getOne(deviceId, channelId);
if (channel == null) {
throw new ControllerException(ErrorCode.ERROR400.getCode(), "未找到通道: " + channelId);
}