优化点播流程
parent
3e1bf69181
commit
9d9681c663
|
@ -78,11 +78,11 @@ public class GB28181ResourceServiceImpl implements IResourceService {
|
|||
CheckCommonGbChannelResult checkResult = checkCommonGbChannel(commonGbChannel);
|
||||
|
||||
if (checkResult.errorMsg != null) {
|
||||
callback.call(commonGbChannel, null, ErrorCode.SUCCESS.getCode(), checkResult.errorMsg, null);
|
||||
callback.call(commonGbChannel, null, ErrorCode.ERROR100.getCode(), checkResult.errorMsg, null);
|
||||
return;
|
||||
}
|
||||
if (checkResult.device == null || checkResult.channel == null) {
|
||||
callback.call(commonGbChannel, null, ErrorCode.SUCCESS.getCode(), "设备获取失败", null);
|
||||
callback.call(commonGbChannel, null, ErrorCode.ERROR100.getCode(), "设备获取失败", null);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -102,11 +102,11 @@ public class GB28181ResourceServiceImpl implements IResourceService {
|
|||
CheckCommonGbChannelResult checkResult = checkCommonGbChannel(commonGbChannel);
|
||||
|
||||
if (checkResult.errorMsg != null) {
|
||||
callback.call(commonGbChannel, null, ErrorCode.SUCCESS.getCode(), checkResult.errorMsg, null);
|
||||
callback.call(commonGbChannel, null, ErrorCode.ERROR100.getCode(), checkResult.errorMsg, null);
|
||||
return;
|
||||
}
|
||||
if (checkResult.device == null || checkResult.channel == null) {
|
||||
callback.call(commonGbChannel, null, ErrorCode.SUCCESS.getCode(), "设备获取失败", null);
|
||||
callback.call(commonGbChannel, null, ErrorCode.ERROR100.getCode(), "设备获取失败", null);
|
||||
return;
|
||||
}
|
||||
try {
|
||||
|
|
|
@ -559,7 +559,6 @@ public class DeviceChannelServiceImpl implements IDeviceChannelService {
|
|||
});
|
||||
}
|
||||
|
||||
|
||||
if(CollectionUtils.isEmpty(channels)){
|
||||
logger.info("通道重设,数据为空={}" , deviceChannelList);
|
||||
return false;
|
||||
|
|
|
@ -206,8 +206,8 @@ public class CommonChannelController {
|
|||
streamInfo.changeStreamIp(host);
|
||||
}
|
||||
wvpResult.setData(new StreamContent(streamInfo));
|
||||
result.setResult(wvpResult);
|
||||
}
|
||||
result.setResult(wvpResult);
|
||||
}else {
|
||||
WVPResult<StreamContent> wvpResult = new WVPResult<>();
|
||||
wvpResult.setCode(code);
|
||||
|
|
Loading…
Reference in New Issue