From f703a411c0ebdf7ada490fda75b52fd839dae079 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 16 三月 2023 14:04:59 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/dev-cqy(1.5.9)' into dev--wxr --- HDL_ON/Common/HDLCommon.cs | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/HDL_ON/Common/HDLCommon.cs b/HDL_ON/Common/HDLCommon.cs index 76f3d70..afe7b93 100644 --- a/HDL_ON/Common/HDLCommon.cs +++ b/HDL_ON/Common/HDLCommon.cs @@ -119,10 +119,13 @@ //} mForceUpdateInfo.ReasonStr = appVersionRes.remark; - Application.RunOnMainThread(() => + if (appVersionRes.version != MainPage.VersionString) { - ShowForceUpdateDialog(mForceUpdateInfo); - }); + Application.RunOnMainThread(() => + { + ShowForceUpdateDialog(mForceUpdateInfo); + }); + } } } } @@ -622,6 +625,7 @@ public void UpdateInternetStatus(int internetStatus, bool IsEnterBackground = false) { MainPage.Log($"缃戠粶鐘舵�佸彉鍖栵紝褰撳墠缃戠粶:{internetStatus} 鏄惁鍚庡彴:{IsEnterBackground.ToString()}"); + MainPage.LinkHdlMqttCount = 0; //缃戠粶鐘舵�佸彉鍖� 閲嶇疆缃戝叧鐘舵�侀噸鏂版悳绱� Control.Ins.GatewayOnline_Cloud = false; Control.Ins.GatewayOnline_Local = false; @@ -631,6 +635,7 @@ if (internetStatus == 0)//娌℃湁缃戠粶杩炴帴 0 { MainPage.InternetStatus = 0; + DAL.Mqtt.MqttClient.InitState(); } else if (internetStatus == 1)//3,4G鐨勭綉缁滆繛鎺� 1 { @@ -682,6 +687,10 @@ EZSDK.IOS.EZSDK.SharedInstance().SetRequestHttpsHostAndPlatform(OnAppConfig.Instance.RequestHttpsHost, 1, DB_ResidenceData.Instance.CurrentRegion.id); //2.璁剧疆钀ょ煶瀛愯处鍙风殑AccessToken鍒癝DK EZSDK.IOS.EZSDK.SharedInstance().SetEZAccessToken(ezChildAccessToken); + //Console.WriteLine("loginToken锛�" + UserInfo.Current.LoginTokenString); + //Console.WriteLine("refreshToken锛�" + UserInfo.Current.RefreshToken); + + ////3.鎵撳紑鎽勫儚澶磋澶囧垪琛ㄩ〉闈� EZSDK.IOS.EZSDK.SharedInstance().Go2EZvizMonitor(); -- Gitblit v1.8.0