zoujiajian 3 years ago
parent
commit
42f59d0424

+ 3 - 0
netflix-service/src/main/java/com/cyksj/service/user/impl/BadIntentionOpServiceImpl.java

@@ -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) {