From 34e965100d635346e2d4cd6e6013bdaed66b3004 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期四, 02 一月 2020 19:52:13 +0800
Subject: [PATCH] 2019.1.2-3

---
 ZigbeeApp/Shared/Phone/UserCenter/Abount/AbountForm.cs |   66 ++++++++++++++++----------------
 1 files changed, 33 insertions(+), 33 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Abount/AbountForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Abount/AbountForm.cs
index e2faa2d..e1aa84f 100644
--- a/ZigbeeApp/Shared/Phone/UserCenter/Abount/AbountForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Abount/AbountForm.cs
@@ -45,7 +45,7 @@
         /// </summary>
         public AbountForm()
         {
-            
+
         }
         /// <summary>
         /// 鐢婚潰鏄剧ず(搴曞眰浼氬浐瀹氳皟鐢ㄦ鏂规硶锛屽�熶互瀹屾垚鐢婚潰鍒涘缓)
@@ -180,7 +180,7 @@
                 UpdateVersion();
             };
 
-           
+
             updatingBtn = new Button()
             {
                 Y = Application.GetRealHeight(994),
@@ -194,7 +194,7 @@
                 Gravity=Gravity.CenterHorizontal
             };
             bodyFrameLayout.AddChidren(updatingBtn);
-           
+
             SetDownLoadBtnNoVisible();
             CheckVersion();
         }
@@ -246,32 +246,32 @@
         {
 #if iOS
             try
-            {
-                CommonPage.Loading.Start();
-                var versionResult = await RequestHttpsiOSAppVersionAsync();
-                if (versionResult == null || versionResult.Results == null)
-                {
-                    return false;
-                }
-                var results = Newtonsoft.Json.Linq.JArray.Parse(versionResult.Results.ToString());
-                if (results[0] == null)
-                {
-                    return false;
-                }
-                var newVersion = results[0]["version"]?.ToString();
-                var updateContent = results[0]["releaseNotes"]?.ToString();
-                if (newVersion != CommonPage.CodeIDString)
-                {
-                    return true;
-                }
-                return false;
-            }
-            catch
-            {
-                return false;
-
-            }
-                
+            {
+                    CommonPage.Loading.Start();
+                    var versionResult = await RequestHttpsiOSAppVersionAsync();
+                    if (versionResult == null || versionResult.Results == null)
+                    {
+                        return false;
+                    }
+                    var results = Newtonsoft.Json.Linq.JArray.Parse(versionResult.Results.ToString());
+                    if (results[0] == null)
+                    {
+                        return false;
+                    }
+                    var newVersion = results[0]["version"]?.ToString();
+                    var updateContent = results[0]["releaseNotes"]?.ToString();
+                    if (newVersion != CommonPage.CodeIDString)
+                    {
+                        return true;
+                    }
+                    retuun false;
+                }
+                catch
+                {
+            return false;
+
+                }
+
 #elif Android
             try
             {
@@ -300,7 +300,7 @@
         private async void UpdateVersion()
         {
 #if iOS
-            OpenUrl();
+            CommonPage.Instance.OpenUrl();
 #elif Android
             try
             {
@@ -343,7 +343,7 @@
             {
                 System.Console.WriteLine($"涓嬭浇澶辫触--{ex.Message}");
             }
-#endif
+#endif
         }
 
 #if iOS
@@ -351,7 +351,7 @@
         /// 鑾峰彇iOS-APP鐗堟湰淇℃伅
         /// </summary>
         /// <returns>The https app version async.</returns>
-        public async System.Threading.Tasks.Task<Common.ResponseEntity.ResultPack> RequestHttpsiOSAppVersionAsync()
+        public async System.Threading.Tasks.Task<ResponseEntity.ResultPack> RequestHttpsiOSAppVersionAsync()
         {
             try
             {
@@ -361,7 +361,7 @@
                 {
                     return null;
                 }
-                return Newtonsoft.Json.JsonConvert.DeserializeObject<Common.ResponseEntity.ResultPack>(Encoding.UTF8.GetString(result));
+                return Newtonsoft.Json.JsonConvert.DeserializeObject<ResponseEntity.ResultPack>(Encoding.UTF8.GetString(result));
             }
             catch
             {

--
Gitblit v1.8.0