| | |
| | | { |
| | | //1.先检查账号是否注册过 |
| | | var result = pm.GetRegionByAccount(account); |
| | | if (result.Code != HttpUtil.SUCCESS_CODE) |
| | | if (result.Code != StateCode.SUCCESS) |
| | | { |
| | | IMessageCommon.Current.ShowErrorInfoAlter(NewAPI.API_POST_GetRegionByAccount, result.Code); |
| | | return; |
| | |
| | | //2.1请求获取验证码 |
| | | if (registerType == 1)//邮箱 |
| | | { |
| | | resultObj = pm.VerificationCodeSend(VerifyType.FORGOTPASSWORD, account); |
| | | resultObj = pm.VerificationCodeSend(VerifyType.FIND_PASSWORD, account); |
| | | } |
| | | else |
| | | { |
| | | resultObj = pm.VerificationCodeSend(VerifyType.FORGOTPASSWORD, account, true, phoneZoneCode); |
| | | resultObj = pm.VerificationCodeSend(VerifyType.FIND_PASSWORD, account, true, phoneZoneCode); |
| | | } |
| | | |
| | | if (resultObj.Code != HttpUtil.SUCCESS_CODE) |
| | | if (resultObj.Code != StateCode.SUCCESS) |
| | | { |
| | | // 提示错误 |
| | | IMessageCommon.Current.ShowErrorInfoAlter(NewAPI.API_POST_Verification_Send, resultObj.Code); |
| | |
| | | // 忘记密码 |
| | | var isPhone = registerType == 0; |
| | | var resultObj = pm.ForgetPassword(account, password, verCode, isPhone); |
| | | if (resultObj.Code == HttpUtil.SUCCESS_CODE) |
| | | if (resultObj.Code == StateCode.SUCCESS) |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |