From 8995a87dc1599e2cbbfc7bc4ef0a8f68a159b5e5 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期日, 28 九月 2025 16:38:58 +0800
Subject: [PATCH] 优化
---
server/system_service/src/main/java/com/doumee/core/annotation/pr/PreventRepeatInterceptor.java | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/server/system_service/src/main/java/com/doumee/core/annotation/pr/PreventRepeatInterceptor.java b/server/system_service/src/main/java/com/doumee/core/annotation/pr/PreventRepeatInterceptor.java
index 1e1ccad..fe0703c 100644
--- a/server/system_service/src/main/java/com/doumee/core/annotation/pr/PreventRepeatInterceptor.java
+++ b/server/system_service/src/main/java/com/doumee/core/annotation/pr/PreventRepeatInterceptor.java
@@ -42,7 +42,8 @@
// 鑾峰彇楠岃瘉瀵硅薄鍜屾柟娉�
PreventRepeatAdapter adapter = (PreventRepeatAdapter)applicationContext.getBean(prAnnotation.value());
// 楠岃瘉鏆村姏璇锋眰
- if(prAnnotation.limit() > 0 && prAnnotation.lockTime() > 0 && adapter.massive(request, prAnnotation.limit(), prAnnotation.lockTime())) {
+ if(prAnnotation.limit() > 0 && prAnnotation.lockTime() > 0
+ && adapter.massive(request, prAnnotation.limit(), prAnnotation.lockTime())) {
log.warn("Eva Intercept a massive request锛寀rl锛歿}", request.getRequestURI());
response.setHeader("content-type", "application/json;charset=UTF-8");
ApiResponse apiResponse = ApiResponse.failed(ResponseStatus.MASSIVE_REQUEST);
--
Gitblit v1.9.3