修复添加通道时未设置设备ID

This commit is contained in:
648540858
2024-12-09 14:41:14 +08:00
parent 1323d081e8
commit 4e48eb6cab
4 changed files with 8 additions and 3 deletions

View File

@@ -109,9 +109,11 @@ public class JT1078TerminalController {
@Operation(summary = "1078-新增通道", security = @SecurityRequirement(name = JwtUtils.HEADER))
@Parameter(name = "channel", description = "通道", required = true)
@PostMapping("/channel/add")
public void addChannel(JTChannel channel){
public JTChannel addChannel(JTChannel channel){
assert channel.getChannelId() != null;
assert channel.getTerminalDbId() != 0;
service.addChannel(channel);
return channel;
}
@Operation(summary = "1078-删除通道", security = @SecurityRequirement(name = JwtUtils.HEADER))
@Parameter(name = "id", description = "通道的数据库ID", required = true)

View File

@@ -248,7 +248,7 @@ public class jt1078PlayServiceImpl implements Ijt1078PlayService {
subscribe.removeSubscribe(hook);
}, userSetting.getPlayTimeout());
log.info("[1078-点播] phoneNumber {} channelId {} 端口: {}", phoneNumber, channelId, ssrcInfo.getPort());
log.info("[1078-点播] phoneNumber {} channelId {}IP: {}, 端口: {}", phoneNumber, channelId, mediaServer.getSdpIp(), ssrcInfo.getPort());
J9101 j9101 = new J9101();
j9101.setChannel(channelId);
j9101.setIp(mediaServer.getSdpIp());

View File

@@ -74,6 +74,7 @@ export default {
message: "保存成功",
type: "success",
});
this.jtChannel = res.data.data
}else {
this.$message({
showClose: true,

View File

@@ -309,7 +309,9 @@ export default {
this.initData();
},
add: function () {
this.jtChannel = {};
this.jtChannel = {
terminalDbId: this.deviceId
};
},
// 编辑
handleEdit(row) {