From d6f398b6b07315d327be2994081eb31ae100ba03 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期一, 16 十一月 2020 19:09:00 +0800
Subject: [PATCH] 2020-11-16 1.更新备份

---
 HDL_ON/UI/UI2/4-PersonalCenter/ResetAccountPassword/ResetPasswordVerificationCodePage.cs |   34 ++++++++--------------------------
 1 files changed, 8 insertions(+), 26 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/ResetAccountPassword/ResetPasswordVerificationCodePage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/ResetAccountPassword/ResetPasswordVerificationCodePage.cs
index 7415923..812f139 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/ResetAccountPassword/ResetPasswordVerificationCodePage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/ResetAccountPassword/ResetPasswordVerificationCodePage.cs
@@ -475,35 +475,16 @@
                             {
                                 act = new PublicAssmebly().TipLoadingMsgDialog(Language.StringByID(StringId.SavingPleaseWait));
                             });
-                            var response = new HttpServerRequest().ValidatorCode(MainPage.LoginUser.userEmailInfo, etCode, MainPage.LoginUser.areaCode);
-                            if (response.StateCode.ToUpper() == StateCode.SUCCESS)
+                            bool isPhone = optionType == 2;
+                            var resultObj = new HttpServerRequest().ValidatorCode(VerifyType.FIND_PASSWORD, MainPage.LoginUser.userEmailInfo, etCode, isPhone);
+                            if (resultObj.Code == StateCode.SUCCESS)
                             {
                                 result = true;
                             }
                             else
                             {
-                                string erorrInfo = "";
-                                switch (response.StateCode)
-                                {
-                                    case "ValidCodeAndPhoneNoEqual"://楠岃瘉鐮侀敊璇�
-                                        erorrInfo = Language.StringByID(StringId.VerificationCodeWrong);
-                                        break;
-                                    case "NoRecord":
-                                        erorrInfo = Language.StringByID(StringId.PlsGetTheVerificationCode);
-                                        break;
-                                    default:
-                                        erorrInfo = "Server error";
-                                        break;
-                                }
-                                Application.RunOnMainThread(() =>
-                                {
-                                    new Tip()
-                                    {
-                                        CloseTime = 1,
-                                        Direction = AMPopTipDirection.None,
-                                        Text = erorrInfo,
-                                    }.Show(bodyView);
-                                });
+                                //澶辫触鎻愮ず
+                                IMessageCommon.Current.ShowErrorInfoAlter(NewAPI.API_POST_Verification_Check, resultObj.Code);
                             }
                             Application.RunOnMainThread(() =>
                             {
@@ -548,11 +529,12 @@
             {
                 if (optionType == 1)
                 {
-                    var result = new DAL.Server.HttpServerRequest().GetLoginVerCode(MainPage.LoginUser.userEmailInfo);
+                    var resultObj = new DAL.Server.HttpServerRequest().VerificationCodeSend(VerifyType.FIND_PASSWORD, MainPage.LoginUser.userEmailInfo);
+
                 }
                 else if (optionType == 2)
                 {
-                    var result = new DAL.Server.HttpServerRequest().GetLoginVerCode(MainPage.LoginUser.userMobileInfo);
+                    var resultObj = new DAL.Server.HttpServerRequest().VerificationCodeSend(VerifyType.FIND_PASSWORD, MainPage.LoginUser.userMobileInfo, true, MainPage.LoginUser.areaCode.ToString() );
                 }
             })
             { IsBackground = true }.Start();

--
Gitblit v1.8.0