From e327510c7329aa9a95e62a460ec659ea0c9563ad Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期六, 19 十二月 2020 19:05:47 +0800
Subject: [PATCH] Merge branch 'CJL' into NewFilePath

---
 HDL_ON/Common/HDLCommon.cs |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/HDL_ON/Common/HDLCommon.cs b/HDL_ON/Common/HDLCommon.cs
index 2ef00d9..ee56f54 100644
--- a/HDL_ON/Common/HDLCommon.cs
+++ b/HDL_ON/Common/HDLCommon.cs
@@ -393,22 +393,25 @@
         public void UpdateInternetStatus(int internetStatus, bool IsEnterBackground = false)
         {
             MainPage.Log($"缃戠粶鐘舵�佸彉鍖栵紝褰撳墠缃戠粶:{internetStatus} 鏄惁鍚庡彴:{IsEnterBackground.ToString()}");
+            //缃戠粶鐘舵�佸彉鍖� 閲嶇疆缃戝叧鐘舵�侀噸鏂版悳绱�
+            Control.Ins.GatewayOnline = false;
 
             if (internetStatus == 0)//娌℃湁缃戠粶杩炴帴 0
             {
-                Control.Ins.GatewayOnline = false;
+                //Control.Ins.GatewayOnline = false;
                 Control.Ins.IsRemote = false;
                 MainPage.InternetStatus = 0;
             }
             else if (internetStatus == 1)//3,4G鐨勭綉缁滆繛鎺� 1
             {
-                Control.Ins.SearchLoaclGateway();
                 MainPage.InternetStatus = 1;
+                Control.Ins.SearchLoaclGateway();
+                
             }
             else if (internetStatus == 2)//WiFi缃戠粶
             {
-                Control.Ins.SearchLoaclGateway();
                 MainPage.InternetStatus = 2;
+                Control.Ins.SearchLoaclGateway();
             }
         }
         #endregion

--
Gitblit v1.8.0