Quellcode durchsuchen

加密方法上传

gao.qiang vor 1 Jahr
Ursprung
Commit
ddb82b07c3

+ 6 - 0
vehicle-admin/src/main/java/com/ozs/web/controller/sdk/GeoHazardMonitorTokenController.java

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