From dc0309e64f02227d8e1468b7326c07955f804612 Mon Sep 17 00:00:00 2001 From: chenqiyang <1406175257@qq.com> Date: 星期三, 22 六月 2022 11:22:18 +0800 Subject: [PATCH] 修改引用路径 --- ZigbeeApp/Shared/Phone/UserCenter/Password/EditorSecondaryPasswordForm.cs | 33 +++++++++++++++++++-------------- 1 files changed, 19 insertions(+), 14 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Password/EditorSecondaryPasswordForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Password/EditorSecondaryPasswordForm.cs index c5b78f6..972fb7e 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Password/EditorSecondaryPasswordForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Password/EditorSecondaryPasswordForm.cs @@ -32,7 +32,7 @@ //璁剧疆澶撮儴淇℃伅 base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uPasswordAuthentication)); - if (string.IsNullOrEmpty(HdlUserCenterResourse.AccountOption.PswAuthentication) == false) + if (string.IsNullOrEmpty(UserCenterResourse.AccountOption.PswAuthentication) == false) { formMode = FormMode.A楠岃瘉鍓嶅洖瀵嗙爜; } @@ -103,7 +103,7 @@ }; //搴曠嚎 int lineWidth = btnForgotPsw.GetRealWidthByText(); - var btnLine = new NormalViewControl(lineWidth, HdlControlResourse.BottomLineHeight, false); + var btnLine = new NormalViewControl(lineWidth, ControlCommonResourse.BottomLineHeight, false); btnLine.BackgroundColor = UserCenterColor.Current.TextOrangeColor; btnLine.Gravity = Gravity.CenterHorizontal; btnLine.Y = btnForgotPsw.Bottom - Application.GetRealHeight(8); @@ -142,15 +142,15 @@ } else if (formMode == FormMode.A楠岃瘉鍓嶅洖瀵嗙爜) { - if (HdlUserCenterResourse.AccountOption.PswAuthentication != i_Psw) + if (UserCenterResourse.AccountOption.PswAuthentication != i_Psw) { - HdlUserCenterResourse.AccountOption.PasswordInputCount--; - if (HdlUserCenterResourse.AccountOption.PasswordInputCount <= 0) + UserCenterResourse.AccountOption.PasswordInputCount--; + if (UserCenterResourse.AccountOption.PasswordInputCount <= 0) { //绠$悊鍛樿韩浠介獙璇佸け璐�,璇烽噸鏂扮櫥褰� string msg2 = Language.StringByID(R.MyInternationalizationString.uCheckAdministratorFailAndReload); this.ShowMassage(ShowMsgType.Tip, msg2); - HdlAccountLogic.Current.ReLoginAgain(Common.Config.Instance.Account); + UserCenterLogic.ReLoginAgain(Common.Config.Instance.Account); return; } //瀵嗙爜閿欒锛岃閲嶆柊杈撳叆 @@ -158,14 +158,14 @@ return; } //閲嶇疆鍓╀綑瀵嗙爜娆℃暟 - HdlUserCenterResourse.AccountOption.ResetPasswordCount(); + UserCenterResourse.AccountOption.ResetPasswordCount(); formMode = FormMode.A淇敼瀵嗙爜; this.InitMiddleFrame(); } else if (formMode == FormMode.A淇敼瀵嗙爜) { - if (i_Psw == HdlUserCenterResourse.AccountOption.PswAuthentication) + if (i_Psw == UserCenterResourse.AccountOption.PswAuthentication) { //鏂板瘑鐮佸拰鍘熷瘑鐮佷竴鑷达紝璇烽噸鏂拌緭鍏� pswControl.SetErrorMsg(Language.StringByID(R.MyInternationalizationString.uNewPswAndOldPswIsEqual)); @@ -217,8 +217,14 @@ { //鎵撳紑杩涘害鏉� this.ShowProgressBar(); - - var result = HdlAccountLogic.Current.EditorNumberAndGesturePassword(psw, null); + var pra = new + { + RequestVersion = Common.CommonPage.RequestVersion, + LoginAccessToken = Common.Config.Instance.Token, + GesturePwd = UserCenterResourse.AccountOption.GestureAuthentication, + StringPwd = psw + }; + var result = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/UpdatEexpandPwd", false, pra); //鍏抽棴杩涘害鏉� this.CloseProgressBar(); @@ -226,13 +232,12 @@ { if (result == false) { - //淇敼瀵嗙爜澶辫触 - contr.SetErrorMsg(Language.StringByID(R.MyInternationalizationString.uEditorPasswordFail)); + contr.SetErrorMsg(string.Empty); } else { - HdlUserCenterResourse.AccountOption.PswAuthentication = psw; - HdlUserCenterResourse.AccountOption.Save(); + UserCenterResourse.AccountOption.PswAuthentication = psw; + UserCenterResourse.AccountOption.Save(); //鐣岄潰鍏抽棴 this.CloseForm(); } -- Gitblit v1.8.0