From 8197a28db829ee2e37af6179df165703ea40ea89 Mon Sep 17 00:00:00 2001 From: 张晓波 <bingbo1993@126.com> Date: 星期三, 18 十月 2023 16:29:41 +0800 Subject: [PATCH] 苏州配置文件简化 --- hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/face/entity/FaceResult.java | 10 ++++++++++ 1 files changed, 10 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..ebd333e 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,16 @@ this.msg = "登录成功"; this.dev_sno = faceDevice.getDevSno(); this.mqinfo = JSON.parseObject(emqxConfig); + this.mqinfo.put("keepalive",60); + 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