From 9ef48d7b2da7c408b53f73be0f6eef3cbac1c84a Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期四, 19 十一月 2020 10:23:45 +0800 Subject: [PATCH] Evoyo.Home1.1.0120111601_Release --- ZigbeeApp/Shared/Phone/UserCenter/Abount/AbountForm.cs | 18 ++++++++---------- 1 files changed, 8 insertions(+), 10 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Abount/AbountForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Abount/AbountForm.cs index 756529e..e03b27b 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Abount/AbountForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Abount/AbountForm.cs @@ -225,7 +225,7 @@ { return false; } - if (int.Parse(versionResult.FirmwareVersion.Replace(".", "")) > int.Parse(CommonPage.CodeIDString.Replace(".", ""))) + if (versionResult.FirmwareVersion.CompareTo(CommonPage.CodeIDString) > 0) { distributedMark = versionResult.DistributedMark; return true; @@ -301,7 +301,7 @@ try { var webClient = new WebClient { }; - var result = await webClient.DownloadDataTaskAsync("https://itunes.apple.com/lookup?id=1461693569"); + var result = await webClient.DownloadDataTaskAsync("https://itunes.apple.com/lookup?id=1528702586"); if (result == null) { return null; @@ -318,7 +318,7 @@ /// </summary> public void OpenUrl() { - Uri url = new Uri("https://itunes.apple.com/cn/app/hdl-home/id1461693569?mt=8"); + Uri url = new Uri("https://itunes.apple.com/cn/app/hdl-home/id1528702586?mt=8"); UIKit.UIApplication.SharedApplication.OpenUrl(url); } #elif Android @@ -382,19 +382,17 @@ { return null; } - int MaxIndex = 0; - int NewVersion = 0; + + Common.ResponseEntity.ApkInfoOBJ apkInfoOBJ = null; for (int i = 0; i < responeData.pageData.Count; i++) { var apkInfo = responeData.pageData[i]; - var version = int.Parse(apkInfo.FirmwareVersion.Replace(".", "")); - if (version > NewVersion) + if (apkInfoOBJ == null || apkInfoOBJ.FirmwareVersion.CompareTo(apkInfo.FirmwareVersion) > 0) { - NewVersion = version; - MaxIndex = i; + apkInfoOBJ = apkInfo; } } - return responeData.pageData[MaxIndex]; + return apkInfoOBJ; } return null; } -- Gitblit v1.8.0