修复添加通道时未设置设备ID
This commit is contained in:
@@ -109,9 +109,11 @@ public class JT1078TerminalController {
|
|||||||
@Operation(summary = "1078-新增通道", security = @SecurityRequirement(name = JwtUtils.HEADER))
|
@Operation(summary = "1078-新增通道", security = @SecurityRequirement(name = JwtUtils.HEADER))
|
||||||
@Parameter(name = "channel", description = "通道", required = true)
|
@Parameter(name = "channel", description = "通道", required = true)
|
||||||
@PostMapping("/channel/add")
|
@PostMapping("/channel/add")
|
||||||
public void addChannel(JTChannel channel){
|
public JTChannel addChannel(JTChannel channel){
|
||||||
assert channel.getChannelId() != null;
|
assert channel.getChannelId() != null;
|
||||||
|
assert channel.getTerminalDbId() != 0;
|
||||||
service.addChannel(channel);
|
service.addChannel(channel);
|
||||||
|
return channel;
|
||||||
}
|
}
|
||||||
@Operation(summary = "1078-删除通道", security = @SecurityRequirement(name = JwtUtils.HEADER))
|
@Operation(summary = "1078-删除通道", security = @SecurityRequirement(name = JwtUtils.HEADER))
|
||||||
@Parameter(name = "id", description = "通道的数据库ID", required = true)
|
@Parameter(name = "id", description = "通道的数据库ID", required = true)
|
||||||
|
|||||||
@@ -248,7 +248,7 @@ public class jt1078PlayServiceImpl implements Ijt1078PlayService {
|
|||||||
subscribe.removeSubscribe(hook);
|
subscribe.removeSubscribe(hook);
|
||||||
}, userSetting.getPlayTimeout());
|
}, 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 j9101 = new J9101();
|
||||||
j9101.setChannel(channelId);
|
j9101.setChannel(channelId);
|
||||||
j9101.setIp(mediaServer.getSdpIp());
|
j9101.setIp(mediaServer.getSdpIp());
|
||||||
|
|||||||
@@ -74,6 +74,7 @@ export default {
|
|||||||
message: "保存成功",
|
message: "保存成功",
|
||||||
type: "success",
|
type: "success",
|
||||||
});
|
});
|
||||||
|
this.jtChannel = res.data.data
|
||||||
}else {
|
}else {
|
||||||
this.$message({
|
this.$message({
|
||||||
showClose: true,
|
showClose: true,
|
||||||
|
|||||||
@@ -309,7 +309,9 @@ export default {
|
|||||||
this.initData();
|
this.initData();
|
||||||
},
|
},
|
||||||
add: function () {
|
add: function () {
|
||||||
this.jtChannel = {};
|
this.jtChannel = {
|
||||||
|
terminalDbId: this.deviceId
|
||||||
|
};
|
||||||
},
|
},
|
||||||
// 编辑
|
// 编辑
|
||||||
handleEdit(row) {
|
handleEdit(row) {
|
||||||
|
|||||||
Reference in New Issue
Block a user