From 5727cf0b9b54da0a191dd1e23cb5abf21320fbff Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期一, 25 十一月 2019 10:34:17 +0800
Subject: [PATCH] IOS使用新的项目名称

---
 ZigbeeApp/Shared/Common/CommonPage.cs |   34 +++++++++++++++++++++-------------
 1 files changed, 21 insertions(+), 13 deletions(-)

diff --git a/ZigbeeApp/Shared/Common/CommonPage.cs b/ZigbeeApp/Shared/Common/CommonPage.cs
old mode 100755
new mode 100644
index bf1c822..bdc2498
--- a/ZigbeeApp/Shared/Common/CommonPage.cs
+++ b/ZigbeeApp/Shared/Common/CommonPage.cs
@@ -53,11 +53,11 @@
         public static string LogoString = @"Logo/Logo.png";
         public static string RegisterLogoString = @"Logo/Register_logo.png";
         public static string RequestHttpsHost = "https://global.hdlcontrol.com/HangZhouHdlCloudApi";
-        //public static string RequestHttpsHost = "http://172.16.2.225:13061";
+        //public static string RequestHttpsHost = "http://172.16.2.192:13061";
         /// <summary>
         /// 鐗堟湰鍙�
         /// </summary>
-        public static string CodeIDString = "1.0.19071501";
+        public static string CodeIDString = "1.0.19111201";
         /// <summary>
         /// 娉ㄥ唽鏉ユ簮(0:HDL On 1:Zigbee)
         /// </summary>
@@ -74,11 +74,11 @@
         /// <summary>
         /// 璇锋眰鐗堟湰鍙�
         /// </summary>
-        public static string RequestVersion = "1.0";
+        public static string RequestVersion = "2.0";
         /// <summary>
-        /// 宸﹁竟璺濈灞忓箷鐨勫搴�--50
+        /// 宸﹁竟璺濈灞忓箷鐨勫搴�--58
         /// </summary>
-        public static int XLeft = 50;
+        public static int XLeft = 58;
         /// <summary>
         /// button楂樺害--110
         /// </summary>
@@ -130,9 +130,9 @@
         /// </summary>
         public static int Navigation_Height = 220;
         /// <summary>
-        /// 搴曡竟鏍忛珮搴� 160
+        /// 搴曡竟鏍忛珮搴�
         /// </summary>
-        public static int TabbarHeight = 160;
+        public const int TabbarHeight = 141;
         /// <summary>
         /// 绾挎潯鐨勯珮搴�--瀹為檯鍍忕礌3
         /// </summary>
@@ -177,8 +177,15 @@
         /// 褰撳墠缃戠粶杩炴帴鐨勬ā寮�  0:娌℃湁缃戠粶  1锛氳繙绋嬭繛鎺ワ紝涔熷彨3G,4G  2锛歐IFI
         /// </summary>
         public static int nowNetworkMode = 0;
-
-
+        /// <summary>
+        /// 鍗犱綅瀛椾綋澶у皬
+        /// 11
+        /// </summary>
+        public static int PlaceHolderTextSize = 11;
+        /// <summary>
+        /// 瀹夊崜鐨勭郴缁熻繑鍥炴寜閿兘鍚︽寜涓�(姣斿鍦ㄥ浠借繕鍘熸椂,涓嶈兘鎸変笅杩斿洖閿�)
+        /// </summary>
+        public static bool BackKeyCanClick = true;
 
         /// <summary>
         /// 璇锋眰鏈嶅姟鍣ㄦ柟娉�
@@ -261,7 +268,7 @@
         /// <param name="token">token</param>
         /// <param name="requestMethod">POST 鎴栬�� GET 绛夌瓑</param>
         /// <returns>寰楀埌鍝嶅簲鐨勬暟鎹�</returns>
-        private async System.Threading.Tasks.Task<byte[]> DoRequestZigbeeHttpsInterface(string requestFullUrl, byte[] byteData, string token, string requestMethod = "POST")
+        public async System.Threading.Tasks.Task<byte[]> DoRequestZigbeeHttpsInterface(string requestFullUrl, byte[] byteData, string token, string requestMethod = "POST")
         {
             try
             {
@@ -378,13 +385,14 @@
                         return null;
                     }
                     int MaxIndex = 0;
-                    int NewID = 0;
+                    int NewVersion = 0;
                     for (int i = 0; i < responeData.pageData.Count; i++)
                     {
                         var apkInfo = responeData.pageData[i];
-                        if (int.Parse(apkInfo.Id) > NewID)
+                        var version = int.Parse(apkInfo.FirmwareVersion.Replace(".", ""));
+                        if (version > NewVersion)
                         {
-                            NewID = int.Parse(apkInfo.Id);
+                            NewVersion = version;
                             MaxIndex = i;
                         }
                     }

--
Gitblit v1.8.0