wxr
2020-11-20 e2ffb5fce53119f5cb36e3b2466becbefa096842
HDL_ON/UI/UI2/4-PersonalCenter/ResetAccountPassword/ResetPasswordVerificationCodePage.cs
@@ -1,5 +1,6 @@
using System;
using System.Threading;
using HDL_ON.DAL.Server;
using HDL_ON.UI.CSS;
using Shared;
@@ -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 = 1,
                                        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();