|
@@ -50,7 +50,7 @@ public class SmsCodeServiceImpl implements SmsCodeService {
|
|
times = Integer.parseInt(sysConfig.getParanValue());
|
|
times = Integer.parseInt(sysConfig.getParanValue());
|
|
}
|
|
}
|
|
// 十分钟内只能发3条
|
|
// 十分钟内只能发3条
|
|
- List<SysMessage> list = sysMessageService.queryUserInRecentMinList(userId, 10, MessageSendMode.SMS);
|
|
|
|
|
|
+ List<SysMessage> list = sysMessageService.queryUserInRecentMinList(mobile, 10, MessageSendMode.SMS);
|
|
if (list != null && list.size() > times) {
|
|
if (list != null && list.size() > times) {
|
|
throw new BizException("对不起,您发送太频繁请稍后重试!");
|
|
throw new BizException("对不起,您发送太频繁请稍后重试!");
|
|
}
|
|
}
|