|
|
|
@ -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")); |
|
|
|
|
}); |
|
|
|
|