From 25429f085093d89d543a0b90e30d0d62d1b7dac9 Mon Sep 17 00:00:00 2001 From: hxb <hxb@hdlchina.com.cn> Date: 星期二, 30 八月 2022 09:37:38 +0800 Subject: [PATCH] 合并了IOS的代码 --- ZigbeeApp/Shared/Phone/UserCenter/Password/EditorGesturePasswordForm.cs | 25 ++++++++++++------------- 1 files changed, 12 insertions(+), 13 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Password/EditorGesturePasswordForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Password/EditorGesturePasswordForm.cs index 051c3dc..8dfcc30 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Password/EditorGesturePasswordForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Password/EditorGesturePasswordForm.cs @@ -229,7 +229,7 @@ /// <param name="psw">瀵嗙爜</param> private void SaveSecondaryPassword(PswGestureInputControl contr, string psw) { - HdlThreadLogic.Current.RunThread(async () => + HdlThreadLogic.Current.RunThread(() => { //鎵撳紑杩涘害鏉� this.ShowProgressBar(); @@ -240,25 +240,24 @@ GesturePwd = psw, StringPwd = UserCenterResourse.AccountOption.PswAuthentication }; - var result = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/UpdatEexpandPwd", false, pra); + var result = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/UpdatEexpandPwd", false, pra); //鍏抽棴杩涘害鏉� this.CloseProgressBar(); - if (result == false) + HdlThreadLogic.Current.RunMain(() => { - contr.SetErrorMsg(string.Empty); - } - else - { - UserCenterResourse.AccountOption.GestureAuthentication = psw; - UserCenterResourse.AccountOption.Save(); - - HdlThreadLogic.Current.RunMain(() => + if (result == false) { + contr.SetErrorMsg(string.Empty); + } + else + { + UserCenterResourse.AccountOption.GestureAuthentication = psw; + UserCenterResourse.AccountOption.Save(); //鐣岄潰鍏抽棴 this.CloseForm(); - }); - } + } + }); }); } -- Gitblit v1.8.0