From 32a8370517ce75caac836edc82f62614d5f9b187 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期三, 23 十一月 2022 10:19:31 +0800 Subject: [PATCH] 科技系统优化、大华摄像头功能 --- HDL_ON/Common/HDLCommon.cs | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/HDL_ON/Common/HDLCommon.cs b/HDL_ON/Common/HDLCommon.cs index 76f3d70..7aa1087 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 { -- Gitblit v1.8.0