From 23ee4f8c373f9abecf079ef9d4297d8b6cd8d5e6 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期三, 16 十二月 2020 15:16:00 +0800
Subject: [PATCH] Merge branch 'NewFilePath'

---
 HDL-ON_iOS/ViewController.cs |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/HDL-ON_iOS/ViewController.cs b/HDL-ON_iOS/ViewController.cs
index 221887a..cb709ac 100644
--- a/HDL-ON_iOS/ViewController.cs
+++ b/HDL-ON_iOS/ViewController.cs
@@ -2,6 +2,7 @@
 using CoreLocation;
 using Foundation;
 using HDL_ON;
+using HDL_ON.DriverLayer;
 using Shared;
 using UIKit;
 
@@ -74,12 +75,19 @@
             internetStatus = Reachability.InternetConnectionStatus();
             if (internetStatus == NetworkStatus.NotReachable)//娌℃湁缃戠粶杩炴帴 0
             {
+                Control.Ins.GatewayOnline = false;
+                Control.Ins.IsRemote = false;
+                MainPage.InternetStatus = 0;
             }
             else if (internetStatus == NetworkStatus.ReachableViaCarrierDataNetwork)//3,4G鐨勭綉缁滆繛鎺� 1
             {
+                Control.Ins.SearchLoaclGateway();
+                MainPage.InternetStatus = 1;
             }
             else if (internetStatus == NetworkStatus.ReachableViaWiFiNetwork)
-            { //wifi鐨勭綉缁滆繛鎺� 2
+            {
+                Control.Ins.SearchLoaclGateway();
+                MainPage.InternetStatus = 2;
             }
         }
     }

--
Gitblit v1.8.0