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/Common/Form/PswSecondarySecurityForm.cs |   26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/PswSecondarySecurityForm.cs b/ZigbeeApp/Shared/Phone/Common/Form/PswSecondarySecurityForm.cs
similarity index 83%
rename from ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/PswSecondarySecurityForm.cs
rename to ZigbeeApp/Shared/Phone/Common/Form/PswSecondarySecurityForm.cs
index 024a7a4..b79f62b 100644
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/PswSecondarySecurityForm.cs
+++ b/ZigbeeApp/Shared/Phone/Common/Form/PswSecondarySecurityForm.cs
@@ -2,7 +2,7 @@
 using System.Collections.Generic;
 using System.Text;
 
-namespace Shared.Phone.UserCenter
+namespace Shared.Phone
 {
     /// <summary>
     /// 浜屾瀵嗙爜楠岃瘉鐣岄潰
@@ -62,15 +62,15 @@
             };
             pswControl.FinishInputEvent += (strPsw) =>
             {
-                if (UserCenterResourse.AccountOption.PswAuthentication != strPsw)
+                if (HdlUserCenterResourse.AccountOption.PswAuthentication != strPsw)
                 {
-                    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;
                     }
                     //瀵嗙爜閿欒锛岃閲嶆柊杈撳叆
@@ -78,7 +78,7 @@
                     return;
                 }
                 //閲嶇疆鍓╀綑瀵嗙爜娆℃暟
-                UserCenterResourse.AccountOption.ResetPasswordCount();
+                HdlUserCenterResourse.AccountOption.ResetPasswordCount();
                 //鐣岄潰鍏抽棴
                 this.CloseForm();
                 SuccessAction?.Invoke();
@@ -89,7 +89,7 @@
             var btnGesture = new BottomLeftClickButton(frameBack.Width / 2, Application.GetRealHeight(127));
             frameBack.AddChidren(btnGesture);
             btnGesture.InitControl(i_GestureText);
-            if (string.IsNullOrEmpty(UserCenterResourse.AccountOption.GestureAuthentication) == true)
+            if (string.IsNullOrEmpty(HdlUserCenterResourse.AccountOption.GestureAuthentication) == true)
             {
                 //娌℃湁鍚敤鎵嬪娍寮�閿�
                 btnGesture.CanClick = false;
@@ -98,14 +98,14 @@
             btnGesture.ButtonClickEvent += (sender, e) =>
             {
                 var form = new PswGestureSecirityForm();
-                this.AddFromAndRemoveNowForm(form, i_TouchText, i_PasswordText, i_GestureText, SuccessAction);
+                this.AddFormAndCloseNowForm(form, i_TouchText, i_PasswordText, i_GestureText, SuccessAction);
             };
 
             //Touch ID寮�閿�
             var btnTouch = new BottomRightClickButton(frameBack.Width - btnGesture.Width, btnGesture.Height);
             frameBack.AddChidren(btnTouch);
             btnTouch.InitControl(i_TouchText);
-            if (UserCenterResourse.AccountOption.FingerprintAuthentication == false)
+            if (HdlUserCenterResourse.AccountOption.FingerprintAuthentication == false)
             {
                 //娌℃湁鍚敤Touch ID
                 btnTouch.CanClick = false;
@@ -138,16 +138,16 @@
                         TouchIDUtils.Instance.OnHDLTouchIDStateBackEvent = null;
 
                         //瀵嗙爜楠岃瘉
-                        if (string.IsNullOrEmpty(UserCenterResourse.AccountOption.PswAuthentication) == false)
+                        if (string.IsNullOrEmpty(HdlUserCenterResourse.AccountOption.PswAuthentication) == false)
                         {
                             var form = new PswSecondarySecurityForm();
-                            this.AddFromAndRemoveNowForm(form, i_TouchText, i_PasswordText, i_GestureText, SuccessAction);
+                            this.AddFormAndCloseNowForm(form, i_TouchText, i_PasswordText, i_GestureText, SuccessAction);
                         }
                         //鎵嬪娍楠岃瘉
-                        else if (string.IsNullOrEmpty(UserCenterResourse.AccountOption.GestureAuthentication) == false)
+                        else if (string.IsNullOrEmpty(HdlUserCenterResourse.AccountOption.GestureAuthentication) == false)
                         {
                             var form = new PswGestureSecirityForm();
-                            this.AddFromAndRemoveNowForm(form, i_TouchText, i_PasswordText, i_GestureText, SuccessAction);
+                            this.AddFormAndCloseNowForm(form, i_TouchText, i_PasswordText, i_GestureText, SuccessAction);
                         }
                         else
                         {

--
Gitblit v1.8.0