From dfdd9f442cae66d82ac7715c740292dbe5ba880e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AD=A3=E6=98=93?= Date: Fri, 30 May 2025 14:17:22 +0800 Subject: [PATCH] =?UTF-8?q?TODO=20=E6=8E=89=E7=BA=BF=E9=87=8D=E8=BF=9E?= =?UTF-8?q?=E6=9C=BA=E5=88=B6=20=EF=BC=88=E5=BE=85=E5=AE=8C=E6=88=90?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ViewModels/MqttControlViewModel.cs | 2 +- .../Util/MqttHelper/MqttHelper.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RIZO_Application/Modules/RIZO_Application.Modules.ModuleName/ViewModels/MqttControlViewModel.cs b/RIZO_Application/Modules/RIZO_Application.Modules.ModuleName/ViewModels/MqttControlViewModel.cs index 56f86f7..cf642e3 100644 --- a/RIZO_Application/Modules/RIZO_Application.Modules.ModuleName/ViewModels/MqttControlViewModel.cs +++ b/RIZO_Application/Modules/RIZO_Application.Modules.ModuleName/ViewModels/MqttControlViewModel.cs @@ -172,7 +172,7 @@ namespace RIZO_Application.Modules.ModuleName.ViewModels _eventAggregator.GetEvent().Publish(message); if (retries>=maxRetries) { - MessageBox.Show("MQTT已掉线,请停止扫码"); + MessageBox.Show("MQTT服务器已掉线,请停止扫码并重启系统"); } } public async void Destroy() diff --git a/RIZO_Application/RIZO_Application.Infrastructure/Util/MqttHelper/MqttHelper.cs b/RIZO_Application/RIZO_Application.Infrastructure/Util/MqttHelper/MqttHelper.cs index 1edfe7f..701cefb 100644 --- a/RIZO_Application/RIZO_Application.Infrastructure/Util/MqttHelper/MqttHelper.cs +++ b/RIZO_Application/RIZO_Application.Infrastructure/Util/MqttHelper/MqttHelper.cs @@ -25,7 +25,7 @@ namespace RIZO_Helper.Tools public Action Disconnected; - public MqttHelper(string server, int port = 1883, string clientId = "wpf-demo", bool cleanSession = true) + public MqttHelper(string server, int port = 1883, string clientId = "wpf-demo", bool cleanSession = false) { if (string.IsNullOrEmpty(server)) throw new ArgumentNullException(nameof(server), "MQTT服务器地址不能为空");