手机号授权:发送验证码传参顺序问题

This commit is contained in:
lzm
2022-11-30 16:54:42 +08:00
committed by yeungchihang
parent 10231c52ef
commit aa7a37e8d0

View File

@@ -84,7 +84,7 @@ public class SmsController extends BaseController {
}
// 对86手机进行授权码校验处理
if (Constant.CHINA_MAINLAND_PHONE_AREA_CODE.equals(phoneAreaCode) && SmsTypeEnum.PHONE_AUTH_APPLY_CODE.value != type) {
PhoneAuthApplyRecord applyRecord = phoneAuthApplyRecordService.getAuthApplyRecord(phoneAreaCode, mobile);
PhoneAuthApplyRecord applyRecord = phoneAuthApplyRecordService.getAuthApplyRecord(mobile,phoneAreaCode);
if (applyRecord == null || !Constant.PhoneAuthApplyStatus.pass.equals(applyRecord.getStatus())) {
throw new ServiceException("該地區暫不開放使用");
}