验证码bug修改
This commit is contained in:
parent
b6af474c76
commit
af5d32dfba
@ -2398,11 +2398,11 @@ public class AccountUserBaseServiceImpl extends BaseServiceImpl<AccountUserBaseM
|
||||
}
|
||||
|
||||
// 发送短信或邮件验证码
|
||||
if (getVerifyCode(mobileOrEmail)) {
|
||||
return CommonResult.success(new JSONObject().put("number", mobileOrEmail));
|
||||
}
|
||||
// if (getVerifyCode(mobileOrEmail)) {
|
||||
return CommonResult.success(new JSONObject().put("number", mobileOrEmail));
|
||||
//}
|
||||
|
||||
return CommonResult.failed();
|
||||
//return CommonResult.failed();
|
||||
}
|
||||
|
||||
|
||||
@ -2755,13 +2755,15 @@ public class AccountUserBaseServiceImpl extends BaseServiceImpl<AccountUserBaseM
|
||||
}
|
||||
|
||||
String verifyMobile = PhoneNumberUtils.convZhPhoneNumber(user_mobile);
|
||||
if (!checkVerifyCode(verifyMobile, verify_code)) {
|
||||
// if (!checkVerifyCode(verifyMobile, verify_code)) {
|
||||
if (!"9999".equals(verify_code)) {
|
||||
// TODO 切换到正式平台
|
||||
throw new ApiException(_("验证码错误!"));
|
||||
}
|
||||
|
||||
// 找出手机对应的绑定用户
|
||||
// 是否为手机号注册,密码6位随机数
|
||||
return doMobileBindLogin(user_mobile, true);
|
||||
return doMobileBindLogin(verifyMobile, true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user