Browse Source

防止重复数据 入队列

zjs 4 days ago
parent
commit
1ef6daa1a9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/main/java/com/cn/esermis/utils/HJ212MsgUtils.java

+ 3 - 0
src/main/java/com/cn/esermis/utils/HJ212MsgUtils.java

@@ -60,6 +60,9 @@ public class HJ212MsgUtils {
60
      * @return json
60
      * @return json
61
      */
61
      */
62
     public static JSONObject dealMsg2(String msg) {
62
     public static JSONObject dealMsg2(String msg) {
63
+        if (msg.contains("CN=2011")){
64
+            return null;
65
+        }
63
         JSONObject data = new JSONObject();
66
         JSONObject data = new JSONObject();
64
         try {
67
         try {
65
             // 拆分消息
68
             // 拆分消息