| | |
| | | btnEmail.TextColor = UserCenterColor.Current.TextGrayColor3;
|
| | | btnEmail.TextAlignment = TextAlignment.Center;
|
| | | btnEmail.TextSize = 16;
|
| | | btnEmail.Text = UserCenterResourse.UserInfo.Email;
|
| | | btnEmail.Text = HdlUserCenterResourse.UserInfo.UserEmail;
|
| | | btnEmail.Y = btnMsg1.Bottom + Application.GetRealHeight(12);
|
| | | bodyFrameLayout.AddChidren(btnEmail);
|
| | |
|
| | |
| | | /// </summary>
|
| | | private void SendCodeToEmail(BottomClickButton btnNext)
|
| | | {
|
| | | var sendCodePra = new SendCodePra();
|
| | |
|
| | | bool falge = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/LoginSendVerCode", false, sendCodePra);
|
| | | if (falge == false)
|
| | | var errorMsg = HdlAccountLogic.Current.SendVeriCodeToEmail(HdlUserCenterResourse.UserInfo.UserEmail, VerCodeType.A其他);
|
| | | if (errorMsg != null)
|
| | | {
|
| | | HdlMessageLogic.Current.ShowMassage(ShowMsgType.Tip, errorMsg);
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | this.btnErrorMsg.Visible = true;
|
| | | return false;
|
| | | }
|
| | | var checkCodePra = new CheckCodePra();
|
| | | checkCodePra.Code = code;
|
| | |
|
| | | bool flage = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/ValidatorCode", false, checkCodePra);
|
| | | if (flage == false)
|
| | | var result = HdlAccountLogic.Current.CheckVeriCode(HdlUserCenterResourse.UserInfo.UserEmail, VerCodeType.A其他, code);
|
| | | if (result == false)
|
| | | {
|
| | | //验证码错误,请重新输入
|
| | | this.btnErrorMsg.Visible = true;
|
| | |
| | | }
|
| | |
|
| | | var from = new CheckNewEmailForm();
|
| | | base.AddFromAndRemoveNowForm(from);
|
| | | base.AddFormAndCloseNowForm(from);
|
| | |
|
| | | return true;
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region ■ 结构体_____________________________
|
| | |
|
| | | /// <summary>
|
| | | /// 发送验证码的启动参数
|
| | | /// </summary>
|
| | | private class SendCodePra
|
| | | {
|
| | | /// <summary>
|
| | | /// 用户账号
|
| | | /// </summary>
|
| | | public string Account = UserCenterResourse.UserInfo.Email;
|
| | | /// <summary>
|
| | | /// 公司编号,国内使用手机短信验证码时,此字段填入0,国外手机短信验证码,此字段填入4 |
| | | /// </summary>
|
| | | public int Company = Common.CommonPage.PhoneZoneStr == "86" ? 0 : 4;
|
| | | /// <summary>
|
| | | /// 语言
|
| | | /// </summary>
|
| | | public string Language = Shared.Language.CurrentLanguage;
|
| | | /// <summary>
|
| | | /// 国家地区代码,手机号发送验证码时使用
|
| | | /// </summary>
|
| | | public int AreaCode = 0;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 发送验证码的启动参数
|
| | | /// </summary>
|
| | | private class CheckCodePra
|
| | | {
|
| | | /// <summary>
|
| | | /// 用户账号
|
| | | /// </summary>
|
| | | public string Account = UserCenterResourse.UserInfo.Email;
|
| | | /// <summary>
|
| | | /// 验证码
|
| | | /// </summary>
|
| | | public string Code = "0";
|
| | | /// <summary>
|
| | | /// 语言
|
| | | /// </summary>
|
| | | public string Language = Shared.Language.CurrentLanguage;
|
| | | /// <summary>
|
| | | /// 国家地区代码,手机号发送验证码时使用
|
| | | /// </summary>
|
| | | public int AreaCode = 0;
|
| | | }
|
| | |
|
| | | #endregion
|