|
|
@@ -22,6 +22,9 @@ public class BadIntentionOpServiceImpl implements BadIntentionOpService {
|
|
|
throw BusinessRuntimeException.getInstance("异常手机号");
|
|
|
}
|
|
|
String dayKey = RedisService.key.PHONE_CODE_USER_NUM_KEY_DAY.getName() + phone;
|
|
|
+ if (redisService.hasKey(RedisService.key.PHONE_CODE_BALCK_KEY.getName() + phone)) {
|
|
|
+ throw BusinessRuntimeException.getInstance("异常手机号");
|
|
|
+ }
|
|
|
if (redisService.hasKey(dayKey)) {
|
|
|
Long incr = redisService.incr(dayKey, 1l);
|
|
|
if (incr.intValue() >= PHONE_CODE_GET_NUM_DAY_MAX_BLACK) {
|