From 9ca2281d589fbd4b35177d1846974f17d12095ae Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期四, 16 四月 2020 15:12:02 +0800
Subject: [PATCH] 2020-04-16 1.更新

---
 Crabtree/SmartHome/UI/SimpleControl/MainPage.cs |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/Crabtree/SmartHome/UI/SimpleControl/MainPage.cs b/Crabtree/SmartHome/UI/SimpleControl/MainPage.cs
index e02aeba..972fc55 100644
--- a/Crabtree/SmartHome/UI/SimpleControl/MainPage.cs
+++ b/Crabtree/SmartHome/UI/SimpleControl/MainPage.cs
@@ -37,7 +37,7 @@
 
         //public static Button LogoButton = new Button ();
 
-        public static string RequestVersion = "20200310";
+        public static string RequestVersion = "20200414";
         public static UserInfo LoginUser;
         /// <summary>
         /// 鏄惁鏄鐞嗗憳鏉冮檺(鍙樻洿浜�,鎴愬憳鐨勬椂鍊�,杩欎釜涔熶负ture銆備负浠�涔堜細澹版槑杩欐牱鍙橀噺,鍥犱负鏈変簺鎺ュ彛蹇呴』浣跨敤鍘熸潵鐨凾oken)
@@ -166,11 +166,13 @@
                     Gravity = Gravity.Center,
                     Width = Application.GetRealWidth (560),
                     Height = Application.GetRealHeight (126),
-                    BackgroundColor = SkinStyle.Current.AddTipButtonColor,
+                    //BackgroundColor = SkinStyle.Current.AddTipButtonColor,
+                    BackgroundColor = SkinStyle.Current.MainColor,
                     Radius = 10,
                     IsMoreLines = true,
                     Text = tip,
                     TextSize = 16,
+                    TextColor = 0xFF000000
                 };
                 MainFrameLayout.AddChidren (button);
                 button.MouseUpEventHandler += (sender, e) => {
@@ -218,6 +220,9 @@
             //    }
             //}) { IsBackground = true }.Start ();
 
+            ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, error) => {
+                return true;
+            };
 
             #region
             var webClient = new WebClient ();
@@ -261,7 +266,7 @@
             try {
                 return Newtonsoft.Json.JsonConvert.DeserializeObject<ResponsePack> (responseString);
             } catch (Exception ex) {
-                Console.WriteLine (ex.ToString ());
+                Utlis.WriteLine (ex.ToString ());
                 return new ResponsePack () { StateCode = "Data exception" };
             }
             #endregion
@@ -279,9 +284,11 @@
         {
             ResponsePack revertObj = null;
             try {
-              
-            
 
+
+                ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, error) => {
+                    return true;
+                };
 
                 #region
                 var webClient = new WebClient ();
@@ -307,7 +314,7 @@
                 return bytes;
                 #endregion
             } catch (Exception ex) {
-                Console.WriteLine (ex.Message);
+                Utlis.WriteLine (ex.Message);
                 return null;
             } finally {
                 //requesTime = requesTime.AddDays(1);

--
Gitblit v1.8.0