wxr
2023-09-26 61513acf37a1b97e0b1cf5342ff459c3c6fe83b4
问题修复
8个文件已修改
343 ■■■■ 已修改文件
OnPro/.vs/HDL_APP_Project/xs/UserPrefs.xml 197 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
OnPro/HDL-ON_iOS/Info.plist 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
OnPro/HDL_ON/DAL/Server/HttpServerRequest.cs 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
OnPro/HDL_ON/DAL/Server/NewApiRes.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
OnPro/HDL_ON/UI/MainPage.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
OnPro/HDL_ON/UI/UI1-Login/RegisterPageBLL.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
OnPro/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
OnPro/HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/AboutOnPage.cs 111 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
OnPro/.vs/HDL_APP_Project/xs/UserPrefs.xml
@@ -1,97 +1,6 @@
<Properties StartupConfiguration="{09712674-2A38-407B-B1E2-560B2C352F9A}|Default">
  <MonoDevelop.Ide.ItemProperties.HDL-ON__iOS PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneDeviceTarget" Xamarin.HotReload.WrongLinkerErrorInfoBar.HDL-ON__iOS.HideInfoBar="True" />
  <MonoDevelop.Ide.DebuggingService.PinnedWatches />
  <MonoDevelop.Ide.Workbench ActiveDocument="HDL_ON/DAL/DriverLayer/CRC.cs">
    <Files>
      <File FileName="HDL_ON/UI/BindingResidence/BindingResidencePage.cs" />
      <File FileName="HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/DeliveryQrCodePage.cs" />
      <File FileName="HDL_ON/UI/UI2/4-PersonalCenter/MyQRCodePage.cs" />
      <File FileName="HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/AddMemberScanPageBLL.cs" />
      <File FileName="HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs" />
      <File FileName="HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/Transfer/TransferInputPage.cs" />
      <File FileName="HDL_ON/UI/MainPage.cs" />
      <File FileName="HDL_ON/UI/UI2/UserPage.cs" />
      <File FileName="HDL_ON/Common/R.cs" />
      <File FileName="HDL_ON/UI/UI1-Login/RegisterPageBLL.cs" />
      <File FileName="HDL_ON/UI/UI1-Login/RegisterPage.cs" />
      <File FileName="HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/AboutOnPage.cs" />
      <File FileName="HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs" />
      <File FileName="HDL_ON/UI/UI2/3-Intelligence/IntelligencePage.cs" />
      <File FileName="HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs" />
      <File FileName="HDL_ON/UI/UI2/3-Intelligence/Scene/NewSceneMenuListPage.cs" />
      <File FileName="HDL_ON/UI/UI2/1-HomePage/HomePage.cs" />
      <File FileName="HDL-ON_Android/Resources/xml/file_paths.xml" />
      <File FileName="HDL-ON_Android/Resources/values/ic_launcher_background.xml" />
      <File FileName="HDL-ON_Android/Resources/values/dimens.xml" />
      <File FileName="HDL-ON_Android/Resources/values/colors.xml" />
      <File FileName="HDL-ON_Android/Resources/values/styles.xml" />
      <File FileName="HDL-ON_Android/Other/JPush/JPushReceiver.cs" />
      <File FileName="HDL-ON_Android/Other/JPush/JPushOpenClickActivity.cs" />
      <File FileName="HDL-ON_Android/Other/JPush/JPushFirmBroadcast.cs" />
      <File FileName="HDL_ON/UI/UI1-Login/ForgetPasswordPageBLL.cs" />
      <File FileName="HDL_ON/DAL/Server/NewAPI.cs" />
      <File FileName="HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs" />
      <File FileName="HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AirFreshRelayControlPage.cs" />
      <File FileName="HDL_ON/UI/UI0-Stan/Form/Base/EditorCommonForm.cs" />
      <File FileName="HDL_ON/UI/UI0-Stan/Form/DeviceFunctionCardCommonForm.cs" />
      <File FileName="HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPage.cs" />
      <File FileName="HDL_ON/UI/UI0-Public/PublicAssmeblyBLL.cs" />
      <File FileName="HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs" />
      <File FileName="HDL_ON/Entity/Function/Function.cs" />
      <File FileName="HDL_ON/Entity/Function/InverterInfo.cs" />
      <File FileName="HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPageBLL.cs" />
      <File FileName="HDL_ON/UI/UI2/2-Classification/ClassificaitionPublicBLL.cs" />
      <File FileName="HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/FhControlPage.cs" />
      <File FileName="HDL_ON/UI/UI2/FuntionControlView/Curtain/RollingShutterPageBLL.cs" />
      <File FileName="HDL_ON/UI/UI2/FuntionControlView/Curtain/VenetianBlindsPageBLL.cs" />
      <File FileName="HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPageBLL.cs" />
      <File FileName="HDL_ON/UI/UI2/FuntionControlView/Curtain/CurtainModulePageBLL.cs" />
      <File FileName="HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPageBLL.cs" />
      <File FileName="HDL_ON/UI/UI2/FuntionControlView/Light/RGBPageBLL.cs" />
      <File FileName="HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPageBLL.cs" />
      <File FileName="HDL_ON/UI/UI2/FuntionControlView/Light/RGBWPageBLL.cs" />
      <File FileName="HDL_ON/UI/UI2/FuntionControlView/Light/RelayPageBLL.cs" />
      <File FileName="HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs" />
      <File FileName="HDL_ON/UI/UI2/FuntionControlView/Curtain/CurtainDreamPage.cs" />
      <File FileName="HDL_ON/Entity/DB_ResidenceData.cs" />
      <File FileName="HDL-ON_Android/Assets/Language.ini" />
      <File FileName="../../../../../../Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets" />
      <File FileName="HDL-ON_Android/SplashActivity.cs" />
      <File FileName="HDL_ON/DAL/DriverLayer/Control.cs" />
      <File FileName="HDL-ON_iOS/Info.plist" />
      <File FileName="HDL-ON_iOS/Resources/Language.ini" />
      <File FileName="HDL_ON/DAL/Server/HttpServerRequest.cs" />
      <File FileName="HDL_ON/DAL/Server/HttpUtil.cs" />
      <File FileName="HDL_ON/UI/UI1-Login/LoginPageBLL.cs" />
      <File FileName="HDL_ON/Entity/MyEnum.cs" />
      <File FileName="HDL_ON/DAL/DriverLayer/Packet.cs" />
      <File FileName="HDL_ON/DAL/DriverLayer/UdpSocket.cs" />
      <File FileName="HDL_ON/DAL/DriverLayer/CRC.cs" Line="1" Column="1" />
    </Files>
    <Pads>
      <Pad Id="ProjectPad">
        <State name="__root__">
          <Node name="HDL_APP_Project">
            <Node name="HDL-ON_Android" selected="True">
              <Node name="References" expanded="True" />
              <Node name="Zxing" expanded="True" />
            </Node>
            <Node name="HDL_ON" expanded="True">
              <Node name="DAL" expanded="True">
                <Node name="DriverLayer" expanded="True" />
              </Node>
              <Node name="UI" expanded="True">
                <Node name="BindingResidence" expanded="True" />
              </Node>
            </Node>
          </Node>
        </State>
      </Pad>
    </Pads>
  </MonoDevelop.Ide.Workbench>
  <MonoDevelop.Ide.ItemProperties.HDL-ON__Android PreferredExecutionTarget="Android.3TG0221602005112" />
  <MonoDevelop.MonoDroid LastDeploySdkVersion="13.2.1.2" />
  <MultiItemStartupConfigurations />
  <MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
  <MonoDevelop.Ide.DebuggingService.Breakpoints>
    <BreakpointStore>
      <Breakpoint file="/Users/kaede/Desktop/Projcect/RongAn2/OnPro/HDL_ON/UI/UI2/4-PersonalCenter/CombinedDimming/GroupControl.cs" relfile="HDL_ON/UI/UI2/4-PersonalCenter/CombinedDimming/GroupControl.cs" line="326" column="1" />
@@ -165,6 +74,106 @@
      <Breakpoint file="/Users/kaede/Desktop/Projcect/RongAn2/OnPro/HDL_ON/DAL/Server/HttpServerRequest.cs" relfile="HDL_ON/DAL/Server/HttpServerRequest.cs" line="237" column="1" />
    </BreakpointStore>
  </MonoDevelop.Ide.DebuggingService.Breakpoints>
  <Xamarin.Addins.Core.Project ActiveDebugTarget="Android.3TG0221602005112" />
  <MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
  <MonoDevelop.Ide.DebuggingService.PinnedWatches />
  <MonoDevelop.Ide.Workbench ActiveDocument="HDL_ON/DAL/Server/HttpUtil.cs">
    <Files>
      <File FileName="HDL_ON/UI/BindingResidence/BindingResidencePage.cs" />
      <File FileName="HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/DeliveryQrCodePage.cs" />
      <File FileName="HDL_ON/UI/UI2/4-PersonalCenter/MyQRCodePage.cs" />
      <File FileName="HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/AddMemberScanPageBLL.cs" />
      <File FileName="HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs" />
      <File FileName="HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/Transfer/TransferInputPage.cs" />
      <File FileName="HDL_ON/UI/MainPage.cs" />
      <File FileName="HDL_ON/UI/UI2/UserPage.cs" Line="127" Column="17" />
      <File FileName="HDL_ON/Common/R.cs" />
      <File FileName="HDL_ON/UI/UI1-Login/RegisterPage.cs" Line="164" Column="27" />
      <File FileName="HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/AboutOnPage.cs" />
      <File FileName="HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs" Line="375" Column="55" />
      <File FileName="HDL_ON/UI/UI2/3-Intelligence/IntelligencePage.cs" Line="174" Column="9" />
      <File FileName="HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs" />
      <File FileName="HDL_ON/UI/UI2/3-Intelligence/Scene/NewSceneMenuListPage.cs" />
      <File FileName="HDL_ON/UI/UI2/1-HomePage/HomePage.cs" />
      <File FileName="HDL-ON_Android/Resources/xml/file_paths.xml" />
      <File FileName="HDL-ON_Android/Resources/values/ic_launcher_background.xml" />
      <File FileName="HDL-ON_Android/Resources/values/dimens.xml" />
      <File FileName="HDL-ON_Android/Resources/values/colors.xml" />
      <File FileName="HDL-ON_Android/Resources/values/styles.xml" />
      <File FileName="HDL-ON_Android/Other/JPush/JPushReceiver.cs" />
      <File FileName="HDL-ON_Android/Other/JPush/JPushOpenClickActivity.cs" />
      <File FileName="HDL-ON_Android/Other/JPush/JPushFirmBroadcast.cs" />
      <File FileName="HDL_ON/UI/UI1-Login/ForgetPasswordPageBLL.cs" />
      <File FileName="HDL_ON/DAL/Server/NewAPI.cs" Line="375" Column="29" />
      <File FileName="HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs" />
      <File FileName="HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AirFreshRelayControlPage.cs" />
      <File FileName="HDL_ON/UI/UI0-Stan/Form/Base/EditorCommonForm.cs" />
      <File FileName="HDL_ON/UI/UI0-Stan/Form/DeviceFunctionCardCommonForm.cs" />
      <File FileName="HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPage.cs" />
      <File FileName="HDL_ON/UI/UI0-Public/PublicAssmeblyBLL.cs" />
      <File FileName="HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs" />
      <File FileName="HDL_ON/Entity/Function/Function.cs" />
      <File FileName="HDL_ON/Entity/Function/InverterInfo.cs" />
      <File FileName="HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPageBLL.cs" />
      <File FileName="HDL_ON/UI/UI2/2-Classification/ClassificaitionPublicBLL.cs" />
      <File FileName="HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/FhControlPage.cs" />
      <File FileName="HDL_ON/UI/UI2/FuntionControlView/Curtain/RollingShutterPageBLL.cs" />
      <File FileName="HDL_ON/UI/UI2/FuntionControlView/Curtain/VenetianBlindsPageBLL.cs" />
      <File FileName="HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPageBLL.cs" />
      <File FileName="HDL_ON/UI/UI2/FuntionControlView/Curtain/CurtainModulePageBLL.cs" />
      <File FileName="HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPageBLL.cs" />
      <File FileName="HDL_ON/UI/UI2/FuntionControlView/Light/RGBPageBLL.cs" />
      <File FileName="HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPageBLL.cs" />
      <File FileName="HDL_ON/UI/UI2/FuntionControlView/Light/RGBWPageBLL.cs" />
      <File FileName="HDL_ON/UI/UI2/FuntionControlView/Light/RelayPageBLL.cs" />
      <File FileName="HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs" />
      <File FileName="HDL_ON/UI/UI2/FuntionControlView/Curtain/CurtainDreamPage.cs" />
      <File FileName="HDL_ON/Entity/DB_ResidenceData.cs" />
      <File FileName="HDL-ON_Android/Assets/Language.ini" />
      <File FileName="../../../../../../Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets" />
      <File FileName="HDL-ON_Android/SplashActivity.cs" Line="350" Column="42" />
      <File FileName="HDL_ON/DAL/DriverLayer/Control.cs" />
      <File FileName="HDL-ON_iOS/Info.plist" />
      <File FileName="HDL-ON_iOS/Resources/Language.ini" />
      <File FileName="HDL_ON/DAL/Server/HttpServerRequest.cs" />
      <File FileName="HDL_ON/DAL/Server/HttpUtil.cs" Line="23" Column="9" />
      <File FileName="HDL_ON/UI/UI1-Login/LoginPageBLL.cs" />
      <File FileName="HDL_ON/Entity/MyEnum.cs" />
      <File FileName="HDL_ON/DAL/DriverLayer/Packet.cs" />
      <File FileName="HDL_ON/DAL/DriverLayer/UdpSocket.cs" />
      <File FileName="HDL_ON/DAL/DriverLayer/CRC.cs" />
      <File FileName="HDL_ON/UI/UI1-Login/RegisterPageBLL.cs" Line="400" Column="66" />
      <File FileName="HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs" Line="1" Column="1" />
      <File FileName="HDL_ON/Common/HDLCommon.cs" Line="78" Column="23" />
      <File FileName="HDL_ON/DAL/Server/NewApiRes.cs" Line="1248" Column="4" />
    </Files>
    <Pads>
      <Pad Id="ProjectPad">
        <State name="__root__">
          <Node name="HDL_APP_Project">
            <Node name="HDL-ON_Android" expanded="True" />
            <Node name="HDL_ON">
              <Node name="Common" expanded="True" />
              <Node name="DAL" expanded="True">
                <Node name="Server" expanded="True">
                  <Node name="HttpUtil.cs" selected="True" />
                </Node>
              </Node>
              <Node name="UI">
                <Node name="UI2">
                  <Node name="3-Intelligence" expanded="True">
                    <Node name="Automation" expanded="True" />
                    <Node name="Scene" expanded="True" />
                  </Node>
                  <Node name="FuntionControlView" expanded="True" />
                </Node>
              </Node>
            </Node>
          </Node>
        </State>
      </Pad>
    </Pads>
  </MonoDevelop.Ide.Workbench>
  <MonoDevelop.Ide.ItemProperties.HDL-ON__Android PreferredExecutionTarget="Android.364c4b3158493098" Xamarin.HotReload.WrongLinkerErrorInfoBar.HDL-ON__Android.HideInfoBar="True" />
  <MonoDevelop.Ide.ItemProperties.HDL-ON__iOS PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneDeviceTarget" Xamarin.HotReload.WrongLinkerErrorInfoBar.HDL-ON__iOS.HideInfoBar="True" />
  <Xamarin.Addins.Core.Project ActiveDebugTarget="Android.364c4b3158493098" />
  <MultiItemStartupConfigurations />
</Properties>
OnPro/HDL-ON_iOS/Info.plist
@@ -43,7 +43,7 @@
    <key>NSLocalNetworkUsageDescription</key>
    <string>APP wants to use local network access permissions for WiFi distribution.</string>
    <key>NSLocationWhenInUseUsageDescription</key>
    <string>Use geographic location to provide services such as weather</string>
    <string>Obtain the weather conditions of your current location through localization.</string>
    <key>NSPhotoLibraryAddUsageDescription</key>
    <string>App wants to access your photo library to set the background image of the room</string>
    <key>NSPhotoLibraryUsageDescription</key>
OnPro/HDL_ON/DAL/Server/HttpServerRequest.cs
@@ -1454,6 +1454,22 @@
        }
        #endregion
        #region 检测更新
        public ResponsePackNew CheckAppVersion()
        {
            var requestObj = new AppVersionCheckObj();
#if __IOS__
            requestObj.releaseSystem = "IOS";
#else
            requestObj.releaseSystem = "Android";
#endif
            var requestJson = HttpUtil.GetSignRequestJson(requestObj);
            return HttpUtil.RequestHttpsPost(NewAPI.API_POST_CheckAppVersion, requestJson);
        }
#endregion
        #region 注销账号
        /// <summary>
@@ -1464,7 +1480,7 @@
        {
            Dictionary<string, object> d = new Dictionary<string, object>();
            d.Add("version", MainPage.VersionString);
            d.Add("appCode", "1588071238036582401");
            d.Add("appCode", "1706565357768663041");
#if __IOS__
            d.Add("releaseSystem", "IOS");
#else
OnPro/HDL_ON/DAL/Server/NewApiRes.cs
@@ -1204,7 +1204,7 @@
        ///// </summary>
        //public string appName = SoftwareType.ON_Plus.ToString();
        public string appCode = "1588071238036582401";
        public string appCode = "1706565357768663041";
        /// <summary>
        /// IOS、Android
        /// </summary>
OnPro/HDL_ON/UI/MainPage.cs
@@ -27,7 +27,7 @@
        /// <summary>
        /// 版本号
        /// </summary>
        public static string VersionString = "1.0";
        public static string VersionString = "1.0.0";
        ///// <summary>
        ///// 客户端类型
        ///// </summary>
OnPro/HDL_ON/UI/UI1-Login/RegisterPageBLL.cs
@@ -397,7 +397,7 @@
                if ((sender as Button).IsSelected)
                {
                    //判断是否选择了服务器,选择了才能发送验证码
                    if (CheckIfSelectServer() == false) return;
                    //if (CheckIfSelectServer() == false) return;
                    string account = etAccount.Text.Trim();
                    int time = 60;
@@ -550,7 +550,7 @@
                if (btnRegister.IsSelected)
                {
                    //判断是否选择了服务器,选择了才能发送验证码
                    if (CheckIfSelectServer() == false) return;
                    //if (CheckIfSelectServer() == false) return;
                    //检测账号
                    if (!CheckAccount()) return;
                    //检测密码
OnPro/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
@@ -361,6 +361,13 @@
            //2020-12-03 修改图片加载方法
            ImageUtlis.Current.LoadLocalOrNetworkImages(room.backgroundImage, roomViewbg);
            var btnRoomNameBg = new Button {
                Height = Application.GetRealHeight(45),
                BackgroundColor = 0x44000000,
            };
            roomView.AddChidren(btnRoomNameBg);
            btnRoomNameBg.SetCornerWithSameRadius((uint)Application.GetRealWidth(12), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight);
            var btnFloorAndRoomName = new Button()
            {
                X = Application.GetRealWidth(16),
OnPro/HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/AboutOnPage.cs
@@ -28,6 +28,10 @@
        /// Android 云端返回地址
        /// </summary>
        string newAppVersionUrl = "";
        /// <summary>
        /// 版本更新ListCellView
        /// </summary>
        ListCellView versionUpdateView;
        /// <summary>
        /// 
@@ -93,11 +97,32 @@
            };
            bodyView.AddChidren(lineView);
            #region 版本更新
            versionUpdateView = new ListCellView()
            {
                Y = lineView.Bottom,
            };
#if __ANDROID__
            bodyView.AddChidren(versionUpdateView);
            CheckIfNeedUpdateAsync(false);
#endif
            versionUpdateView.BtnTilte.TextID = StringId.VersionUpdate;
            Action versionUpdateAction = () =>
            {
                OpenUrl();
            };
            versionUpdateView.GoAction = versionUpdateAction;
            #endregion
            #region 软件服务协议
            var serviceAgreementView = new ListCellView()
            {
#if __ANDROID__
                Y = versionUpdateView.Bottom,
#else
                Y = lineView.Bottom,
#endif
            };
            bodyView.AddChidren(serviceAgreementView);
            serviceAgreementView.BtnTilte.TextID = StringId.UserAgreement;
@@ -107,7 +132,7 @@
                new WebViewDialog().LoadPageWithdrawalConsent(titleStr, url);
            };
            serviceAgreementView.GoAction = serviceAgreementAction;
            #endregion
#endregion
            #region 用户信息保护协议
            var privacyPolicyView = new ListCellView()
@@ -143,5 +168,89 @@
            }
        }
        /// <summary>
        /// 检测是否需要更新
        /// Android等接口实现
        /// </summary>
        /// <returns></returns>
        void CheckIfNeedUpdateAsync(bool isTip = false)
        {
            new System.Threading.Thread(() =>
            {
                newAppVersion = CanUpdateAsync();
                Application.RunOnMainThread(() =>
                {
                    if (!string.IsNullOrEmpty(newAppVersion))
                    {
                        //发现新版本
                        versionUpdateView.BtnSubtitle.TextColor = CSS_Color.MainColor;
                        versionUpdateView.BtnSubtitle.Text = Language.StringByID(StringId.DiscoverNewVersion) + "(" + newAppVersion + ")";
                    }
                    else
                    {
                        //已经是最新版本
                        versionUpdateView.BtnSubtitle.TextColor = CSS_Color.PromptingColor1;
                        versionUpdateView.BtnSubtitle.Text = Language.StringByID(StringId.IsLatestVersion);
                    }
                });
            })
            { IsBackground = true }.Start();
        }
        /// <summary>
        /// 检查版本
        /// </summary>
        /// <returns></returns>
        string CanUpdateAsync()
        {
            try
            {
                var versionResult = CheckAppVersion();
                if (versionResult == null)
                {
                    return "";
                }
                var newVersion = versionResult.version;
                if (newVersion.CompareTo(MainPage.VersionString) > 0)
                {
                    newAppVersionUrl = versionResult.packageUrl;
                    return newVersion;
                }
                return "";
            }
            catch (Exception ex)
            {
                return "";
            }
        }
        /// <summary>
        /// 检测新版本
        /// </summary>
        /// <returns>The https app version async.</returns>
        private AppVersionResNew CheckAppVersion()
        {
            try
            {
                var result = new HttpServerRequest().CheckAppVersion();
                if (result.Code == StateCode.SUCCESS)
                {
                    if (result.Data == null)
                    {
                        return null;
                    }
                    var responeData = Newtonsoft.Json.JsonConvert.DeserializeObject<AppVersionResNew>(result.Data.ToString());
                    return responeData;
                }
                return null;
            }
            catch (Exception ex)
            {
                return null;
            }
        }
    }
}