From f96d6e7fb045f2be98300ada72c1c76f726005eb Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期三, 16 十二月 2020 15:33:02 +0800
Subject: [PATCH] 2020-12-16 1.面容指纹解锁开关,通过数字验证问题修复。

---
 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