|
@@ -78,23 +78,32 @@ public class UploadController {
|
|
|
return AjaxResult.success(uploadFile);
|
|
|
}
|
|
|
|
|
|
- public static void main(String[] args) {
|
|
|
- String[] sre = new String[3];
|
|
|
- sre[0] = "123";
|
|
|
- sre[1] = "1234";
|
|
|
- sre[2] = "12345";
|
|
|
- JSONObject res = new JSONObject();
|
|
|
- res.put("alarmCamera", "123");
|
|
|
- res.put("alarmId", "6588");
|
|
|
- res.put("alarmTime", 68822222222L);
|
|
|
- res.put("alarmMile", "1,2,6,8,6,7");
|
|
|
- res.put("content", "报警内容");
|
|
|
- res.put("alarmConfidence", 88);
|
|
|
- res.put("lineDir", 1);
|
|
|
- res.put("alarmAttr", "aaa");
|
|
|
- res.put("alarmType", 1);
|
|
|
- res.put("imageUrls", sre);
|
|
|
- String s = SM4Utils.encryptData_ECB(JSONObject.toJSONString(res), "4370780c9a8c43e5");
|
|
|
- System.out.println(s);
|
|
|
- }
|
|
|
+// public static void main(String[] args) {
|
|
|
+// String[] sre = new String[3];
|
|
|
+// sre[0] = "/1244/1/25/2023-03-03/63a1fe3084f24928915dafcf8a47a925.png";
|
|
|
+// sre[1] = "/1244/1/25/2023-03-03/63a1fe3084f24928915dafcf8a47a925.png";
|
|
|
+// sre[2] = "/1244/1/25/2023-03-03/63a1fe3084f24928915dafcf8a47a925.png";
|
|
|
+// JSONObject res = new JSONObject();
|
|
|
+// res.put("alarmCamera", "123");
|
|
|
+// res.put("alarmId", "6588");
|
|
|
+// res.put("alarmTime", 68822222222L);
|
|
|
+// res.put("alarmMile", "1,2,6,8,6,7");
|
|
|
+// res.put("content", "报警内容");
|
|
|
+// res.put("alarmConfidence", 88);
|
|
|
+// res.put("lineDir", 1);
|
|
|
+// res.put("alarmAttr", "aaa");
|
|
|
+// res.put("alarmType", 1);
|
|
|
+// res.put("imageUrls", sre);
|
|
|
+// String s = SM4Utils.encryptData_ECB(JSONObject.toJSONString(res), "4370780c9a8c43e5");
|
|
|
+// System.out.println(s);
|
|
|
+// }
|
|
|
+public static void main(String[] args) {
|
|
|
+ JSONObject res = new JSONObject();
|
|
|
+ res.put("cameraCode", "654321");
|
|
|
+ res.put("time", "1232456789");
|
|
|
+ res.put("electricity", 88);
|
|
|
+ res.put("cameraState", 1);
|
|
|
+ String s = SM4Utils.encryptData_ECB(JSONObject.toJSONString(res), "4370780c9a8c43e5");
|
|
|
+ System.out.println(s);
|
|
|
+}
|
|
|
}
|