|
@ -475,6 +475,9 @@ public class WlyyLoginEndpoint extends AbstractEndpoint {
|
|
|
if (StringUtils.isEmpty(username)) {
|
|
|
throw new InvalidRequestException("username");
|
|
|
}
|
|
|
if (username.length()>12){
|
|
|
throw new InvalidRequestException("请输入正确的手机号!");
|
|
|
}
|
|
|
//验证请求间隔超时,防止频繁获取验证码
|
|
|
if (!wlyyRedisVerifyCodeService.isIntervalTimeout(client_id, username)) {
|
|
|
throw new IllegalAccessException("SMS request frequency is too fast");
|