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/AccountBindInfo/VerificationCodePage.cs |   34 ++++++++--------------------------
 1 files changed, 8 insertions(+), 26 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/VerificationCodePage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/VerificationCodePage.cs
index 3f3c124..5744a72 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/VerificationCodePage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/VerificationCodePage.cs
@@ -491,35 +491,16 @@
                                 act = new PublicAssmebly().TipLoadingMsgDialog(Language.StringByID(StringId.SavingPleaseWait));
                             });
                             var verAccount = optionType == 1 ? MainPage.LoginUser.userEmailInfo : MainPage.LoginUser.userMobileInfo;
-                            var response = new HttpServerRequest().ValidatorCode(verAccount, etCode, MainPage.LoginUser.areaCode);
-                            if (response.StateCode.ToUpper() == StateCode.SUCCESS)
+                            var isPhone = optionType == 2;
+                            var resultObj = new HttpServerRequest().ValidatorCode(VerifyType.REGISTER_USER_SYSTEM, verAccount, 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(() =>
                             {
@@ -642,11 +623,12 @@
                 {
                     if (optionType == 1)
                     {
-                        var result = new DAL.Server.HttpServerRequest().GetLoginVerCode(MainPage.LoginUser.userEmailInfo);
+                        var resultObj = new HttpServerRequest().VerificationCodeSend(VerifyType.REGISTER_USER_SYSTEM, MainPage.LoginUser.userEmailInfo);
+
                     }
                     else if (optionType == 2)
                     {
-                        var result = new DAL.Server.HttpServerRequest().GetLoginVerCode(MainPage.LoginUser.userMobileInfo);
+                        var resultObj = new HttpServerRequest().VerificationCodeSend(VerifyType.REGISTER_USER_SYSTEM, MainPage.LoginUser.userMobileInfo, true, MainPage.LoginUser.areaCode.ToString());
                     }
                 })
                 { IsBackground = true }.Start();

--
Gitblit v1.8.0