From ef241f4cde952f8bd24bcabd8ecaa319b56ba2af Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期一, 28 六月 2021 13:48:15 +0800
Subject: [PATCH] 2021-06-28 1.更新Android网络监测方法 2.修复忘记密码发送邮件失败

---
 Crabtree/SmartHome/UI/SimpleControl/Phone/System/SystemRemote.cs |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/System/SystemRemote.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/System/SystemRemote.cs
index bafa812..e547fd3 100644
--- a/Crabtree/SmartHome/UI/SimpleControl/Phone/System/SystemRemote.cs
+++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/System/SystemRemote.cs
@@ -159,18 +159,18 @@
 
         public static bool checeInternet ()
         {
-            byte [] bytes = null;
-            var dateTime = DateTime.Now;
-            System.Threading.Tasks.Task.Run (() => {
-                bytes = new System.Net.WebClient { Proxy = null }.DownloadData ("http://www.baidu.com");
-            });
-            while ((DateTime.Now - dateTime).TotalMilliseconds < 8000) {
-                System.Threading.Thread.Sleep (100);
-                if (bytes != null) {
-                    return true;
-                }
-            }
-            return false;
+            //byte [] bytes = null;
+            //var dateTime = DateTime.Now;
+            //System.Threading.Tasks.Task.Run (() => {
+            //    bytes = new System.Net.WebClient { Proxy = null }.DownloadData ("http://www.baidu.com");
+            //});
+            //while ((DateTime.Now - dateTime).TotalMilliseconds < 8000) {
+            //    System.Threading.Thread.Sleep (100);
+            //    if (bytes != null) {
+            //        return true;
+            //    }
+            //}
+            return true;
         }
 
         static bool ShowTip = true;

--
Gitblit v1.8.0