lyhzzz 6 mesi fa
parent
commit
8593cd8fbb

+ 0 - 3
doc/update-eur-2.8.0.sql

@@ -80,13 +80,10 @@ SET FOREIGN_KEY_CHECKS = 1;
 INSERT INTO t_rtk_device(rtk_sn_code,camera_sn,sg_rtk_sn,rtk_type,create_user_id,update_user_id,user_name,`password`,ip_addr,mount_point,`port`,operator,account_type,failure_time)
 SELECT rtk_sn_code,camera_sn_code,sg_rtk_sn,rtk_type,create_user_id,update_user_id,user_name,`password`,ip_addr,mount_point,`port`,operator,1 as account_type,failure_time FROM t_rtk_info WHERE rec_status = 'A' and rtk_sn_code is not null and rtk_sn_code != ''
 
-
 CREATE TEMPORARY TABLE temp_table AS
-
 SELECT rd.id,camera_sn ,camera_type,d.type from t_rtk_device rd
                                                     LEFT JOIN t_camera a on rd.camera_sn = a.sn_code
                                                     LEFT JOIN t_camera_detail d on a.id = d.camera_id
-
 WHERE rd.rec_status ='A' and camera_sn is not null and camera_type  is null;
 
 

+ 6 - 0
src/main/java/com/fdkankan/manage/controller/BaseController.java

@@ -81,5 +81,11 @@ public class BaseController {
         jsonObject.put("time",new Date().getTime());
         jsonObject.put("rtkSnCode","2113213123");
         System.out.println(jsonObject.toJSONString());
+        String decipher = RsaUtils.encipher(jsonObject.toJSONString(), RtkUtils.publicKey);
+        System.out.println(decipher);
+
+        String d = RsaUtils.decipher(decipher, RtkUtils.privateKey);
+        System.out.println(d);
+
     }
 }