Browse Source

注释发送保安平台代码

hanzhengyi 1 month ago
parent
commit
3598b2f766

+ 15 - 15
service-agbox/service-agbox-biz/src/main/java/com/usky/agbox/service/job/patrolAgbox.java

@@ -106,21 +106,21 @@ public class patrolAgbox {
                 "\":\""+eventVO.get("name").toString()+"\",\"certifiedNo\":\""+eventVO.get("certifiedNo").toString()+"\"}}");
         String resultString = HttpClientUtils.doPost(list.get(0).getAgboxUrl(),map);
         JSONObject resultVO = JSONObject.parseObject(resultString);
-        LocalDateTime now = LocalDateTime.now();
-//        String host = "127.0.0.1";
-        int port = 5901;
-        String xmlData = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>  \n" +
-                "<Agent ID=\"SGT100006088\" Type=\"SG\" Ver=\"1.2.0.0\">\n" +
-                "<DVRHeart State=\"0\" TotalSpace=\"1000\" FreeSpace=\"500\">\n" +
-                "System,smss.exe,csrss.exe\n" +
-                "</DVRHeart>\n" +
-                "<GetTicks/>\n" +
-                "<OperationCmd Type=\"18\" Channel=\"2\" TriggerTime=\""+now+"\" Note=\"5rWL6K+V\" " +
-                "GUID=\"7b726e15-4d45-53e7-f0e0-0abb91156fd7\">\n" +
-                "/9j/4AAQSkZJRgABAQEASABIAAD/2wBDABsSFBcUERsXFhceHBsgKEIrKCUlKFE6PTBCYFVlZF9V\n" +
-                "</OperationCmd>\n" +
-                "</Agent>";
-        sendMessage(URL, port, xmlData);
+//        LocalDateTime now = LocalDateTime.now();
+////        String host = "127.0.0.1";
+//        int port = 5901;
+//        String xmlData = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>  \n" +
+//                "<Agent ID=\"SGT100006088\" Type=\"SG\" Ver=\"1.2.0.0\">\n" +
+//                "<DVRHeart State=\"0\" TotalSpace=\"1000\" FreeSpace=\"500\">\n" +
+//                "System,smss.exe,csrss.exe\n" +
+//                "</DVRHeart>\n" +
+//                "<GetTicks/>\n" +
+//                "<OperationCmd Type=\"18\" Channel=\"2\" TriggerTime=\""+now+"\" Note=\"5rWL6K+V\" " +
+//                "GUID=\"7b726e15-4d45-53e7-f0e0-0abb91156fd7\">\n" +
+//                "/9j/4AAQSkZJRgABAQEASABIAAD/2wBDABsSFBcUERsXFhceHBsgKEIrKCUlKFE6PTBCYFVlZF9V\n" +
+//                "</OperationCmd>\n" +
+//                "</Agent>";
+//        sendMessage(URL, port, xmlData);
         return resultVO;
     }