From f1627fb857a832eabf4601a7483d528f8cbb6611 Mon Sep 17 00:00:00 2001
From: 张晓波 <bingbo1993@126.com>
Date: 星期三, 18 十月 2023 14:40:43 +0800
Subject: [PATCH] 苏州配置文件简化

---
 hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/platuser/service/impl/PlatUserServiceImpl.java |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/platuser/service/impl/PlatUserServiceImpl.java b/hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/platuser/service/impl/PlatUserServiceImpl.java
index 3b4b3c8..0476b0e 100644
--- a/hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/platuser/service/impl/PlatUserServiceImpl.java
+++ b/hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/platuser/service/impl/PlatUserServiceImpl.java
@@ -21,6 +21,7 @@
 import com.thhy.staff.modules.biz.platuser.entity.*;
 import com.thhy.staff.modules.biz.platuser.mapper.PlatUserMapper;
 import com.thhy.staff.modules.biz.platuser.service.PlatUserService;
+import com.thhy.staff.utils.MqUtils;
 import com.thhy.staff.utils.ProcessFlag;
 import com.thhy.staff.utils.StaffNoUtils;
 import io.netty.channel.ChannelHandlerContext;
@@ -402,6 +403,8 @@
             pathParamJson.put("person_type","4");
             jsonObject.put("path_params",pathParamJson);
             mqContent.setData(jsonObject);
+
+            MqUtils.createClient(emqxConfig,sns,JSON.toJSONString(mqContent));
             /*Map<String,Object> map = AcsMain.addFace(fd.getJobNum(),filePrefix+"/"+fd.getPhoto());
             if(map.containsKey("code")){
                 if(Integer.parseInt(map.get("code").toString())!=0){
@@ -424,7 +427,7 @@
                 }
             });*/
 
-            CopyOnWriteArraySet<ChannelHandlerContext> CTXS= NettyServerHandler.CTXS;
+            /*CopyOnWriteArraySet<ChannelHandlerContext> CTXS= NettyServerHandler.CTXS;
             if(CTXS.size()<1){
                 throw  new BasicException(new BasicMessage("99991","与门禁一体机失去链接"));
             }
@@ -440,7 +443,7 @@
                     ctx.flush();
                     logger.info("成功推送消息到局域网段");
                 }
-            });
+            });*/
         }
     }
 

--
Gitblit v1.9.3