From b6655c930866fadf3275587f4c692aa658bd9b21 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期三, 24 六月 2020 10:57:07 +0800
Subject: [PATCH] 2020-06-24 1. 修改网络请求方法,改为HttpWebRequest支持自定义超时时间,默认10S。 2.后台回前台,超过20S断开远程重新连接。

---
 Crabtree/SmartHome/UI/SimpleControl/Phone/Sensor/UserSensorHistoryPage.cs |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/Sensor/UserSensorHistoryPage.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/Sensor/UserSensorHistoryPage.cs
index 3bb5057..0fee813 100644
--- a/Crabtree/SmartHome/UI/SimpleControl/Phone/Sensor/UserSensorHistoryPage.cs
+++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/Sensor/UserSensorHistoryPage.cs
@@ -198,7 +198,7 @@
                             });
                         }
                     } catch (Exception ex) {
-                        Console.WriteLine (ex.ToString ());
+                        Utlis.WriteLine (ex.ToString ());
                     } finally {
                         Application.RunOnMainThread (() => {
                             MainPage.Loading.Hide ();
@@ -271,7 +271,7 @@
                                     });
                                 }
                             } catch (Exception ex) {
-                                Console.WriteLine (ex.ToString ());
+                                Utlis.WriteLine (ex.ToString ());
                             } finally {
                                 Application.RunOnMainThread (() => {
                                     MainPage.Loading.Hide ();
@@ -319,7 +319,7 @@
                             });
                         }
                     } catch (Exception ex) {
-                        Console.WriteLine (ex.ToString ());
+                        Utlis.WriteLine (ex.ToString ());
                     } finally {
                         Application.RunOnMainThread (() => {
                             MainPage.Loading.Hide ();
@@ -361,7 +361,7 @@
                             });
                         }
                     } catch (Exception ex) {
-                        Console.WriteLine (ex.ToString ());
+                        Utlis.WriteLine (ex.ToString ());
                     } finally {
                         Application.RunOnMainThread (() => {
                             MainPage.Loading.Hide ();

--
Gitblit v1.8.0