增加获取code为null时的条件

This commit is contained in:
luoshuyue 2022-02-25 15:05:36 +08:00
parent b97db305eb
commit ce56d9c0bf

View File

@ -248,7 +248,7 @@ public class StreamProxyServiceImpl implements IStreamProxyService {
StreamProxyItem streamProxyDto = videoManagerStorager.queryStreamProxy(app, stream);
if (streamProxyDto != null && streamProxyDto.isEnable()) {
JSONObject jsonObject = removeStreamProxyFromZlm(streamProxyDto);
if (jsonObject.getInteger("code") == 0) {
if (null==jsonObject.getInteger("code") || jsonObject.getInteger("code") == 0) {
streamProxyDto.setEnable(false);
result = videoManagerStorager.updateStreamProxy(streamProxyDto);
}