From 9bc98adfcb5ec7ccf54a94f9cd2906d0351b72a5 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期三, 16 十二月 2020 10:56:46 +0800 Subject: [PATCH] Update AndroidManifest.xml --- HDL_ON/DAL/Mqtt/MqttClient.cs | 24 +++++++++++++++--------- 1 files changed, 15 insertions(+), 9 deletions(-) diff --git a/HDL_ON/DAL/Mqtt/MqttClient.cs b/HDL_ON/DAL/Mqtt/MqttClient.cs index bbd535a..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 @@ -524,7 +526,9 @@ /// </summary> static void ReceiveNotifySqueezeAsync(string mMes) { - +#if DEBUG + return; +#endif if (mMes == PushSignStr) return;//鏄嚜宸辩殑鐧诲綍鎺ㄩ�佷笉澶勭悊 //鏂紑杩滅▼杩炴帴 @@ -536,13 +540,15 @@ DisConnectRemoteMqttClient("鎸や笅绾�"); - UserInfo.Current.LastTime = DateTime.MinValue; - UserInfo.Current.SaveUserInfo(); + HDLCommon.Current.CheckLogout(); - Application.RunOnMainThread(() => { - MainPage.GoLoginPage(UserInfo.Current); - //寮圭獥鎻愮ず琚尋涓嬬嚎 - }); + //UserInfo.Current.LastTime = DateTime.MinValue; + //UserInfo.Current.SaveUserInfo(); + + //Application.RunOnMainThread(() => { + // MainPage.GoLoginPage(UserInfo.Current); + // //寮圭獥鎻愮ず琚尋涓嬬嚎 + //}); //2020-08-11 鍒犻櫎鎺ㄩ�佹暟鎹� //HDLRequest.Current.PushserivceSignOut (); -- Gitblit v1.8.0