From 0d9f64668fd7350d6a21fd157e32009a96d98134 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期三, 16 十二月 2020 13:09:08 +0800
Subject: [PATCH] 新云端代码Ver1.2

---
 ZigbeeApp/Shared/Phone/UserCenter/Password/EditorSecondaryPasswordForm.cs |   33 ++++++++++++++-------------------
 1 files changed, 14 insertions(+), 19 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Password/EditorSecondaryPasswordForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Password/EditorSecondaryPasswordForm.cs
index 972fb7e..c5b78f6 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(UserCenterResourse.AccountOption.PswAuthentication) == false)
+            if (string.IsNullOrEmpty(HdlUserCenterResourse.AccountOption.PswAuthentication) == false)
             {
                 formMode = FormMode.A楠岃瘉鍓嶅洖瀵嗙爜;
             }
@@ -103,7 +103,7 @@
                 };
                 //搴曠嚎
                 int lineWidth = btnForgotPsw.GetRealWidthByText();
-                var btnLine = new NormalViewControl(lineWidth, ControlCommonResourse.BottomLineHeight, false);
+                var btnLine = new NormalViewControl(lineWidth, HdlControlResourse.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 (UserCenterResourse.AccountOption.PswAuthentication != i_Psw)
+                if (HdlUserCenterResourse.AccountOption.PswAuthentication != i_Psw)
                 {
-                    UserCenterResourse.AccountOption.PasswordInputCount--;
-                    if (UserCenterResourse.AccountOption.PasswordInputCount <= 0)
+                    HdlUserCenterResourse.AccountOption.PasswordInputCount--;
+                    if (HdlUserCenterResourse.AccountOption.PasswordInputCount <= 0)
                     {
                         //绠$悊鍛樿韩浠介獙璇佸け璐�,璇烽噸鏂扮櫥褰�
                         string msg2 = Language.StringByID(R.MyInternationalizationString.uCheckAdministratorFailAndReload);
                         this.ShowMassage(ShowMsgType.Tip, msg2);
-                        UserCenterLogic.ReLoginAgain(Common.Config.Instance.Account);
+                        HdlAccountLogic.Current.ReLoginAgain(Common.Config.Instance.Account);
                         return;
                     }
                     //瀵嗙爜閿欒锛岃閲嶆柊杈撳叆
@@ -158,14 +158,14 @@
                     return;
                 }
                 //閲嶇疆鍓╀綑瀵嗙爜娆℃暟
-                UserCenterResourse.AccountOption.ResetPasswordCount();
+                HdlUserCenterResourse.AccountOption.ResetPasswordCount();
 
                 formMode = FormMode.A淇敼瀵嗙爜;
                 this.InitMiddleFrame();
             }
             else if (formMode == FormMode.A淇敼瀵嗙爜)
             {
-                if (i_Psw == UserCenterResourse.AccountOption.PswAuthentication)
+                if (i_Psw == HdlUserCenterResourse.AccountOption.PswAuthentication)
                 {
                     //鏂板瘑鐮佸拰鍘熷瘑鐮佷竴鑷达紝璇烽噸鏂拌緭鍏�
                     pswControl.SetErrorMsg(Language.StringByID(R.MyInternationalizationString.uNewPswAndOldPswIsEqual));
@@ -217,14 +217,8 @@
             {
                 //鎵撳紑杩涘害鏉�
                 this.ShowProgressBar();
-                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);
+
+                var result = HdlAccountLogic.Current.EditorNumberAndGesturePassword(psw, null);
                 //鍏抽棴杩涘害鏉�
                 this.CloseProgressBar();
 
@@ -232,12 +226,13 @@
                 {
                     if (result == false)
                     {
-                        contr.SetErrorMsg(string.Empty);
+                        //淇敼瀵嗙爜澶辫触
+                        contr.SetErrorMsg(Language.StringByID(R.MyInternationalizationString.uEditorPasswordFail));
                     }
                     else
                     {
-                        UserCenterResourse.AccountOption.PswAuthentication = psw;
-                        UserCenterResourse.AccountOption.Save();
+                        HdlUserCenterResourse.AccountOption.PswAuthentication = psw;
+                        HdlUserCenterResourse.AccountOption.Save();
                         //鐣岄潰鍏抽棴
                         this.CloseForm();
                     }

--
Gitblit v1.8.0