短信去除授权码校验

This commit is contained in:
liaozetao
2023-11-27 17:24:34 +08:00
parent 328d040c8f
commit 29127a8367

View File

@@ -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);
}