From f441a3c49f8b5cedee3e4def6fbb448ef40eb9cb Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期三, 10 六月 2020 14:46:58 +0800
Subject: [PATCH] Crabtree-ON 2020-06-10 基于最新HDL ON 优化问题,Crabtree-ONAPP部分功能同步修改优化调整 1. 增加大图片大文件上传处理. 2.远程连接交互提示,由原来的Loading修改成顶部Tip提示。 3.灯光全开、全关和场景控制多线程发送,和HDLON同样加锁处理。 4.Android ,判断移动网络失败,网络监测修复方法修改,后台前台切换优化。

---
 Crabtree/SmartHome/UI/SimpleControl/Phone/Guide/GuideAddGateway.cs |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/Guide/GuideAddGateway.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/Guide/GuideAddGateway.cs
index e7792e0..1a363c3 100644
--- a/Crabtree/SmartHome/UI/SimpleControl/Phone/Guide/GuideAddGateway.cs
+++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/Guide/GuideAddGateway.cs
@@ -303,7 +303,7 @@
                             goNext = CheckIfGoNext (common);
                          
                         } catch (Exception ex) {
-                            Console.WriteLine (ex.Message);
+                            Utlis.WriteLine (ex.Message);
                         } finally {
                             Application.RunOnMainThread (() => {
                                 MainPage.Loading.Hide ();
@@ -312,13 +312,13 @@
                                     CommonPage.FindGatewayChilrenIPAddress = common.IPAddress;
                                     inThisView = false;
                                     if (inView != null) {
-                                        Console.WriteLine ("inView != null");
+                                        Utlis.WriteLine ("inView != null");
                                         var deviceListView = new GuideSettingGateway (common);
                                         (inView.Parent as PageLayout).AddChidren (deviceListView);
                                         deviceListView.ShowPage ();
                                         (inView.Parent as PageLayout).PageIndex = (inView.Parent as PageLayout).ChildrenCount - 1;
                                     } else {
-                                        Console.WriteLine ("inView == null");
+                                        Utlis.WriteLine ("inView == null");
                                         UserHomePage.FrameLayoutMain.AddChidren (UserMiddle.guidePageView);
                                         var guide = new GuideAddResidence ();
                                         UserMiddle.guidePageView.AddChidren (guide);
@@ -403,7 +403,7 @@
                         }
                         Control control = new Control ();
 
-                        Console.WriteLine ("缁勬挱鎼滅储缃戝叧锛屾悳绱㈠湴鍧�鏄�:" + CommonPage.EndPoint.ToString () + "    " + CommonPage.GateWayList.Count);
+                        Utlis.WriteLine ("缁勬挱鎼滅储缃戝叧锛屾悳绱㈠湴鍧�鏄�:" + CommonPage.EndPoint.ToString () + "    " + CommonPage.GateWayList.Count);
                         control.Send (new Target () {
                             IPEndPoint = CommonPage.EndPoint,
                             Command = Command.ReadGateway,
@@ -412,7 +412,7 @@
                             AddData = ms.ToArray ()
                         }, SendCount.Zero, false);
 
-                        Console.WriteLine ("骞挎挱鎼滅储缃戝叧锛屾悳绱㈠湴鍧�鏄�:" + new Net.NetWiFi ().BroadcastIpAddress.ToString () + "    " + CommonPage.GateWayList.Count);
+                        Utlis.WriteLine ("骞挎挱鎼滅储缃戝叧锛屾悳绱㈠湴鍧�鏄�:" + new Net.NetWiFi ().BroadcastIpAddress.ToString () + "    " + CommonPage.GateWayList.Count);
                         control.Send (new Target () {
                             IPEndPoint = new System.Net.IPEndPoint (new Net.NetWiFi ().BroadcastIpAddress, 6000),
                             Command = Command.ReadGateway,
@@ -432,7 +432,7 @@
                     CommonPage.LocalPhoneFindDevice = false;
                     #endregion
                 } catch (Exception ex) {
-                    Console.WriteLine (ex.ToString ());
+                    Utlis.WriteLine (ex.ToString ());
                 } finally {
                     Application.RunOnMainThread (() => {
                         if (CommonPage.GateWayList.Count == 0) {
@@ -588,7 +588,7 @@
             //    UserConfig.Instance.IsLocalEncrypt = true;
             //    //string aseKeyStr = CommonPage.MyEncodingUTF8.GetString (AseKeyBytes);
             //    //UserConfig.Instance.LocalEncryptKey = aseKeyStr;
-            //    System.Console.WriteLine ($"============>LocalEncryptKey 鍔犲瘑鎴愬姛Key涓猴細{UserConfig.Instance.LocalEncryptKey}");
+            //    Utlis.WriteLine ($"============>LocalEncryptKey 鍔犲瘑鎴愬姛Key涓猴細{UserConfig.Instance.LocalEncryptKey}");
             //}
 
             var backBytes = Control.ControlBytesSendHasReturn (Command.Read_APP_Data_STORE_1D5C_CMD, common.SubnetID, common.DeviceID, new byte [] { });
@@ -625,7 +625,7 @@
                         }
                         //淇敼鎴愬姛,璁剧疆鏈湴涓哄姞瀵嗘柟寮�
                         UserConfig.Instance.IsLocalEncrypt = true;
-                        //System.Console.WriteLine ($"============>LocalEncryptKey 鍔犲瘑鎴愬姛Key涓猴細{UserConfig.Instance.LocalEncryptKey}");
+                        //Utlis.WriteLine ($"============>LocalEncryptKey 鍔犲瘑鎴愬姛Key涓猴細{UserConfig.Instance.LocalEncryptKey}");
                     }
                     goNext = true;
 

--
Gitblit v1.8.0