短信去除授权码校验
This commit is contained in:
@@ -82,13 +82,6 @@ public class SmsController extends BaseController {
|
||||
return SmsTypeEnum.REGISTER.getValue() == type ? new BusiResult<>(BusiStatus.SMS_SEND_SUCCESS) :
|
||||
new BusiResult<>(BusiStatus.PHONE_INVALID);
|
||||
}
|
||||
// 对86手机进行授权码校验处理
|
||||
if (Constant.CHINA_MAINLAND_PHONE_AREA_CODE.equals(phoneAreaCode) && SmsTypeEnum.PHONE_AUTH_APPLY_CODE.value != type) {
|
||||
PhoneAuthApplyRecord applyRecord = phoneAuthApplyRecordService.getAuthApplyRecord(mobile,phoneAreaCode);
|
||||
if (applyRecord == null || !Constant.PhoneAuthApplyStatus.pass.equals(applyRecord.getStatus())) {
|
||||
throw new ServiceException("該地區暫不開放使用");
|
||||
}
|
||||
}
|
||||
return smsService.sendSmsCode(mobile, type, deviceInfo, ip, null);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user