From 3cce7810ca728954faf7666ffa2f87160f86b3b3 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期三, 16 十二月 2020 18:45:12 +0800 Subject: [PATCH] 2020-12-16 1.增加推送注册状态隐藏功能提示。2.解锁设置UI还原优化调整。 --- HDL_ON/DAL/Mqtt/MqttClient.cs | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/HDL_ON/DAL/Mqtt/MqttClient.cs b/HDL_ON/DAL/Mqtt/MqttClient.cs index 77f4d6b..1e1e716 100644 --- a/HDL_ON/DAL/Mqtt/MqttClient.cs +++ b/HDL_ON/DAL/Mqtt/MqttClient.cs @@ -310,11 +310,13 @@ if (RemoteMqttClient.ConnectedHandler == null) { RemoteMqttClient.UseConnectedHandler(async (e) => { - Control.Ins.GatewayOnline = true; + if (DB_ResidenceData.Instance.HomeGateway.GatewayOnline) + { + Control.Ins.GatewayOnline = true; + } IfNeedReadAllDeviceStatus = true; Utlis.WriteLine($"============>Mqtt杩滅▼杩炴帴鎴愬姛"); SendPushSignOut(); - //FunctionList.List.ReadAllFunctionStatus(); }); } #endregion -- Gitblit v1.8.0