张晓波
2023-10-18 c4894a8cb422a2923e5c58d6bd053f0bb7927bd0
苏州配置文件简化
已修改2个文件
5 ■■■■■ 文件已修改
hd/pipe/StaffManage/src/main/java/com/thhy/staff/config/EmqxConfig.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/face/entity/FaceResult.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
hd/pipe/StaffManage/src/main/java/com/thhy/staff/config/EmqxConfig.java
@@ -15,7 +15,7 @@
    private String port;
    private String username;
    private String login;
    private String password;
@@ -32,7 +32,7 @@
        return "{" +
                "host:'" + host + '\'' +
                ", port:'" + port + '\'' +
                ", username:'" + username + '\'' +
                ", login:'" + login + '\'' +
                ", password:'" + password + '\'' +
                ", qos:" + qos +
                ", topic:'" + topic + '\'' +
hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/face/entity/FaceResult.java
@@ -34,6 +34,7 @@
        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");