From bff2fbdfda25eb57dab169f28d48f1621beb981b Mon Sep 17 00:00:00 2001 From: 张晓波 <bingbo1993@126.com> Date: 星期五, 13 十月 2023 08:49:49 +0800 Subject: [PATCH] 删除大屏 mq --- hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/face/entity/FaceResult.java | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/face/entity/FaceResult.java b/hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/face/entity/FaceResult.java index 016f891..480f63d 100644 --- a/hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/face/entity/FaceResult.java +++ b/hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/face/entity/FaceResult.java @@ -34,6 +34,15 @@ this.msg = "登录成功"; this.dev_sno = faceDevice.getDevSno(); this.mqinfo = JSON.parseObject(emqxConfig); + this.mqinfo.put("topic",faceDevice.getDevSno()); + this.mqinfo.put("willTopic",faceDevice.getDevSno()+"-W"); + this.mqinfo.put("willContent",faceDevice.getDevSno()+"-offline"); this.token = UUIDUtils.create(); } + + public FaceResult(boolean success){ + this.success = success; + this.code = 0; + this.msg = "OK"; + } } -- Gitblit v1.9.3