| | |
| | | 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; |
| | |
| | | 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){ |
| | |
| | | } |
| | | });*/ |
| | | |
| | | CopyOnWriteArraySet<ChannelHandlerContext> CTXS= NettyServerHandler.CTXS; |
| | | /*CopyOnWriteArraySet<ChannelHandlerContext> CTXS= NettyServerHandler.CTXS; |
| | | if(CTXS.size()<1){ |
| | | throw new BasicException(new BasicMessage("99991","与门禁一体机失去链接")); |
| | | } |
| | |
| | | ctx.flush(); |
| | | logger.info("成功推送消息到局域网段"); |
| | | } |
| | | }); |
| | | });*/ |
| | | } |
| | | } |
| | | |