From ecbf9d722cf59efe93cf60ee47e8782eca18eca6 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期六, 19 十二月 2020 13:22:55 +0800 Subject: [PATCH] 20201219-1 --- HDL-ON_iOS/ViewController.cs | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/HDL-ON_iOS/ViewController.cs b/HDL-ON_iOS/ViewController.cs index 2f9ac1c..f589fc3 100644 --- a/HDL-ON_iOS/ViewController.cs +++ b/HDL-ON_iOS/ViewController.cs @@ -73,18 +73,22 @@ void UpdateStatus(object sender, EventArgs e) { internetStatus = Reachability.InternetConnectionStatus(); + MainPage.Log($"缃戠粶鐘舵�佸彉鍖栵紝褰撳墠缃戠粶:{internetStatus}"); 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) { Control.Ins.SearchLoaclGateway(); + MainPage.InternetStatus = 2; } } } -- Gitblit v1.8.0