From 652243206427f35a256400a149a1734085824cb9 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期三, 02 九月 2020 17:35:03 +0800 Subject: [PATCH] 2020-09-02-4 --- 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