取消微信手机号校验

This commit is contained in:
2024-12-08 18:54:03 +08:00
parent fcb370c1d4
commit 55e1cb8dc1

View File

@@ -236,11 +236,11 @@ public class WxLoginController extends BaseController {
// 微信用户的手机号码
final String phoneNumber = phoneInfo.getString("phoneNumber");
// 验证手机号码
if (userParam.getNotVerifyPhone() == null && !Validator.isMobile(phoneNumber)) {
String key = ACCESS_TOKEN_KEY.concat(":").concat(getTenantId().toString());
redisTemplate.delete(key);
throw new BusinessException("手机号码格式不正确");
}
// if (userParam.getNotVerifyPhone() == null && !Validator.isMobile(phoneNumber)) {
// String key = ACCESS_TOKEN_KEY.concat(":").concat(getTenantId().toString());
// redisTemplate.delete(key);
// throw new BusinessException("手机号码格式不正确");
// }
return phoneNumber;
}
return null;