From 0f15ebf6575a2f79fdeadee3613bc3eb0923a590 Mon Sep 17 00:00:00 2001
From: 李旭东 <woaiguo66@sina.com>
Date: 星期四, 23 十一月 2023 14:12:29 +0800
Subject: [PATCH] Merge branch 'master' of http://111.30.93.211:10101/r/supipe
---
hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/face/entity/FaceResult.java | 7 +++++++
1 files changed, 7 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 7c1f1e2..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,9 +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