From c35d4efb216cdefc9dd4ee38d4488067430e49ec Mon Sep 17 00:00:00 2001 From: Wen JY Date: Wed, 27 Sep 2023 09:43:10 +0800 Subject: [PATCH 1/2] =?UTF-8?q?change=20-=20=E8=AE=BE=E5=A4=87=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E8=8E=B7=E5=8F=96=E9=80=BB=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/hw/mqtt/auth/MqttAuthHandler.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ruoyi-modules/hw-mqtt-broker/src/main/java/com/hw/mqtt/auth/MqttAuthHandler.java b/ruoyi-modules/hw-mqtt-broker/src/main/java/com/hw/mqtt/auth/MqttAuthHandler.java index 6a3dec9..3ab1ae7 100644 --- a/ruoyi-modules/hw-mqtt-broker/src/main/java/com/hw/mqtt/auth/MqttAuthHandler.java +++ b/ruoyi-modules/hw-mqtt-broker/src/main/java/com/hw/mqtt/auth/MqttAuthHandler.java @@ -85,9 +85,8 @@ public class MqttAuthHandler implements IMqttServerAuthHandler { DeviceInfoDto deviceInfo = optionalDeviceInfoDto.get(); return checkDeviceInfo(deviceInfo,clientId,userName,password); } - }else { - return NoDeviceInfoEvent(clientId,userName,password); } + return NoDeviceInfoEvent(clientId,userName,password); }catch (Exception ex){ logger.error("客户端认证逻辑处理异常:"+ex.getMessage()); } From 0367d38904379278b698d6876b699053b1e5509a Mon Sep 17 00:00:00 2001 From: Wen JY Date: Wed, 27 Sep 2023 09:45:01 +0800 Subject: [PATCH 2/2] =?UTF-8?q?change=20-=20=E8=AE=BE=E5=A4=87=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E8=8E=B7=E5=8F=96=E9=80=BB=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-modules/hw-mqtt-broker/src/main/resources/bootstrap.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-modules/hw-mqtt-broker/src/main/resources/bootstrap.yml b/ruoyi-modules/hw-mqtt-broker/src/main/resources/bootstrap.yml index cd1bc61..51d54ff 100644 --- a/ruoyi-modules/hw-mqtt-broker/src/main/resources/bootstrap.yml +++ b/ruoyi-modules/hw-mqtt-broker/src/main/resources/bootstrap.yml @@ -24,12 +24,12 @@ spring: name: hw-mqtt-broker profiles: # 环境配置 - active: dev + active: prod cloud: nacos: config: # 配置中心地址 - server-addr: 127.0.0.1:8848 + server-addr: 124.70.63.37:8848 # 配置文件格式 file-extension: yml # 共享配置