123
This commit is contained in:
@@ -105,9 +105,11 @@ public class SmsVerifyServiceImpl extends ServiceImpl<SmsVerifyMapper,SmsVerify>
|
||||
throw new ServiceException("请"+(60-diff)+"秒之后再重试发送!");
|
||||
}
|
||||
}
|
||||
long count = userInfoService.count(Wrappers.lambdaQuery(UserInfo.class).eq(UserInfo::getRegIp, clientIP));
|
||||
if(count > 8){
|
||||
throw new ServiceException("验证码发送失败!2"+count);
|
||||
if(codeEnum == CodeEnum.REGISTER){
|
||||
long count = userInfoService.count(Wrappers.lambdaQuery(UserInfo.class).eq(UserInfo::getRegIp, clientIP));
|
||||
if(count > 8){
|
||||
throw new ServiceException("验证码发送失败!次数过多!"+count);
|
||||
}
|
||||
}
|
||||
String code = RandomUtil.randomNumbers(6);
|
||||
SmsVerify smsVerify = new SmsVerify();
|
||||
|
||||
Reference in New Issue
Block a user