|
@@ -1183,4 +1183,10 @@ public class GeoHazardMonitorTokenController {
|
|
|
String s = SM4Utils.encryptData_ECB(JSONObject.toJSONString(res), "4370780c9a8c43e5");
|
|
|
System.out.println(s);
|
|
|
}
|
|
|
+
|
|
|
+ @PostMapping("/encryptionAlarm")
|
|
|
+ public String encryptionAlarm(@RequestBody ReqMsgAlarmVo vo) {
|
|
|
+ String s1 = JSONObject.toJSONString(vo);
|
|
|
+ return SM4Utils.encryptData_ECB(s1, "4370780c9a8c43e5");
|
|
|
+ }
|
|
|
}
|