|
@@ -246,10 +246,6 @@ public class GeoHazardMonitorTokenController {
|
|
}
|
|
}
|
|
String s = SM4Utils.decryptData_ECB(parameterVo.getParameter(), key);
|
|
String s = SM4Utils.decryptData_ECB(parameterVo.getParameter(), key);
|
|
ReqMsgAlarmVo reqMsgAlarmVo = JSON.parseObject(s, ReqMsgAlarmVo.class);
|
|
ReqMsgAlarmVo reqMsgAlarmVo = JSON.parseObject(s, ReqMsgAlarmVo.class);
|
|
- if (ObjectUtils.isEmpty(reqMsgAlarmVo.getAlarmAttr())) {
|
|
|
|
- AjaxResults1 = new AjaxResults(0, "你填写的报警病害属性不符合规则");
|
|
|
|
- return SM4Utils.encryptData_ECB(JSONObject.toJSONString(AjaxResults1), key);
|
|
|
|
- }
|
|
|
|
if (!reqMsgAlarmVo.getAlarmMile().toString().matches(PATTERNS)) {
|
|
if (!reqMsgAlarmVo.getAlarmMile().toString().matches(PATTERNS)) {
|
|
AjaxResults1 = new AjaxResults(0, "报警里程位置填写错误");
|
|
AjaxResults1 = new AjaxResults(0, "报警里程位置填写错误");
|
|
return SM4Utils.encryptData_ECB(JSONObject.toJSONString(AjaxResults1), key);
|
|
return SM4Utils.encryptData_ECB(JSONObject.toJSONString(AjaxResults1), key);
|