From eb51679c618d5027070fbd6f3c0519f0f17e7d7d Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期一, 23 十一月 2020 10:07:53 +0800
Subject: [PATCH] Merge branch 'CJL' of http://172.16.1.23:6688/r/~wxr/HDL_APP_Project into CJL

---
 HDL_ON/UI/UI2/4-PersonalCenter/ResetAccountPassword/ResetPasswordVerificationCodePage.cs |   37 ++++++++++---------------------------
 1 files changed, 10 insertions(+), 27 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/ResetAccountPassword/ResetPasswordVerificationCodePage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/ResetAccountPassword/ResetPasswordVerificationCodePage.cs
index 8af62b2..812f139 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/ResetAccountPassword/ResetPasswordVerificationCodePage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/ResetAccountPassword/ResetPasswordVerificationCodePage.cs
@@ -1,5 +1,6 @@
 锘縰sing System;
 using System.Threading;
+using HDL_ON.DAL.Server;
 using HDL_ON.UI.CSS;
 using Shared;
 
@@ -42,7 +43,7 @@
             bodyView = this;
         }
 
-        public void LoadPage(int tId,int ot)
+        public void LoadPage(int tId, int ot)
         {
             titleId = tId;
             optionType = ot;
@@ -474,35 +475,16 @@
                             {
                                 act = new PublicAssmebly().TipLoadingMsgDialog(Language.StringByID(StringId.SavingPleaseWait));
                             });
-                            var response = new DAL.Server.HttpServerRequest().ValidatorCode(MainPage.LoginUser.userEmailInfo, etCode, MainPage.LoginUser.areaCode);
-                            if (response.StateCode.ToUpper() == "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 = 3,
-                                        Direction = AMPopTipDirection.None,
-                                        Text = erorrInfo,
-                                    }.Show(bodyView);
-                                });
+                                //澶辫触鎻愮ず
+                                IMessageCommon.Current.ShowErrorInfoAlter(NewAPI.API_POST_Verification_Check, resultObj.Code);
                             }
                             Application.RunOnMainThread(() =>
                             {
@@ -547,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