|
@@ -183,6 +183,20 @@ public class GeoHazardMonitorTokenController {
|
|
|
jsonObject.put("data", "你填写的相机编码不存在!!!");
|
|
|
return SM4Utils.encryptData_ECB(JSONObject.toJSONString(jsonObject), "4370780c9a8c43e5");
|
|
|
}
|
|
|
+ if (reqMsgAlarmVo.getImageUrls() == null || reqMsgAlarmVo.getImageUrls().length == 0){
|
|
|
+ jsonObject.put("resultCode", 0);
|
|
|
+ jsonObject.put("message", "失败");
|
|
|
+ jsonObject.put("data", "报警图片为空!!!");
|
|
|
+ return SM4Utils.encryptData_ECB(JSONObject.toJSONString(jsonObject), "4370780c9a8c43e5");
|
|
|
+ }
|
|
|
+ for (String str : reqMsgAlarmVo.getImageUrls()) {
|
|
|
+ if (str == null || str.isEmpty()) {
|
|
|
+ jsonObject.put("resultCode", 0);
|
|
|
+ jsonObject.put("message", "失败");
|
|
|
+ jsonObject.put("data", "报警图片为空!!!");
|
|
|
+ return SM4Utils.encryptData_ECB(JSONObject.toJSONString(jsonObject), "4370780c9a8c43e5");
|
|
|
+ }
|
|
|
+ }
|
|
|
if (ObjectUtils.isEmpty(reqMsgAlarmVo.getLineDir())) {
|
|
|
reqMsgAlarmVo.setLineDir(baseCameraManagement.getLineDir());
|
|
|
}
|