修复添加通道时未设置设备ID
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -74,6 +74,7 @@ export default {
|
||||
message: "保存成功",
|
||||
type: "success",
|
||||
});
|
||||
this.jtChannel = res.data.data
|
||||
}else {
|
||||
this.$message({
|
||||
showClose: true,
|
||||
|
||||
@@ -309,7 +309,9 @@ export default {
|
||||
this.initData();
|
||||
},
|
||||
add: function () {
|
||||
this.jtChannel = {};
|
||||
this.jtChannel = {
|
||||
terminalDbId: this.deviceId
|
||||
};
|
||||
},
|
||||
// 编辑
|
||||
handleEdit(row) {
|
||||
|
||||
Reference in New Issue
Block a user