diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/HikVideoServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/HikVideoServiceImpl.java index f3fd0ea..da7ed81 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/HikVideoServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/HikVideoServiceImpl.java @@ -53,6 +53,9 @@ public class HikVideoServiceImpl implements IHikVideoService { String contentType = "application/json"; String resultStr = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, contentType, null); JSONObject resultObj = JSONObject.parseObject(resultStr); + if(ObjectUtil.isEmpty(resultObj)){ + throw new ServiceException("该平台信息录入有误,无法找到对应点位!"); + } Assert.isTrue("0".equals(resultObj.getString("code")),()-> { throw new ServiceException(resultObj.getString("msg")); });