From 8e5175417fc30bbb7a2625913ef51726baf6f191 Mon Sep 17 00:00:00 2001
From: 张晓波 <bingbo1993@126.com>
Date: 星期四, 12 十月 2023 16:00:12 +0800
Subject: [PATCH] 删除大屏 mq
---
hd/pipe/StaffManage/src/main/resources/application-dev.yml | 6 +++---
hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/face/entity/FaceResult.java | 3 +++
2 files changed, 6 insertions(+), 3 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..7c1f1e2 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,9 @@
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();
}
}
diff --git a/hd/pipe/StaffManage/src/main/resources/application-dev.yml b/hd/pipe/StaffManage/src/main/resources/application-dev.yml
index 5763621..c172a05 100644
--- a/hd/pipe/StaffManage/src/main/resources/application-dev.yml
+++ b/hd/pipe/StaffManage/src/main/resources/application-dev.yml
@@ -21,10 +21,10 @@
global:
filePrefix: https://pipe.thhy-tj.com/
emqx:
- host: 111.30.93.212
+ host: 111.30.93.215
port: 1883
- username: io
- password: io
+ username: thhy
+ password: thhy123
qos: 1
topic: FF:AA:F4:12:67:05
willTopic: FF:AA:F4:12:67:05-W
--
Gitblit v1.9.3