From 7298d5354963a88643a543b51b90192dc9fc934c Mon Sep 17 00:00:00 2001 From: doum <doum> Date: 星期四, 11 九月 2025 18:43:14 +0800 Subject: [PATCH] 最新版本541200007 --- server/system_service/src/main/java/com/doumee/core/annotation/pr/PreventRepeatInterceptor.java | 5 +++-- 1 files changed, 3 insertions(+), 2 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 34f8e8c..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 @@ -1,7 +1,7 @@ package com.doumee.core.annotation.pr; import com.alibaba.fastjson.JSON; -import com.doumee.core.model.ApiResponse; +import com.doumee.service.business.third.model.ApiResponse; import com.doumee.core.constants.ResponseStatus; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.BeansException; @@ -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