From 710fe1998b744ac9e263acb821c8ba0c1ebd961a Mon Sep 17 00:00:00 2001 From: xiaochangbai <704566072@qq.com> Date: Fri, 21 Oct 2022 17:36:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=99=90=E6=B5=81=E6=AC=A1=E6=95=B0?= =?UTF-8?q?=E4=B8=8D=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cn/lili/cache/limit/interceptor/LimitInterceptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/src/main/java/cn/lili/cache/limit/interceptor/LimitInterceptor.java b/framework/src/main/java/cn/lili/cache/limit/interceptor/LimitInterceptor.java index 1be580ce..5fbbfe27 100644 --- a/framework/src/main/java/cn/lili/cache/limit/interceptor/LimitInterceptor.java +++ b/framework/src/main/java/cn/lili/cache/limit/interceptor/LimitInterceptor.java @@ -61,7 +61,7 @@ public class LimitInterceptor { assert count != null; log.info("限制请求{}, 当前请求{},缓存key{}", limitCount, count.intValue(), key); //如果缓存里没有值,或者他的值小于限制频率 - if (count.intValue() >= limitCount) { + if (count.intValue() > limitCount) { throw new ServiceException(ResultCode.LIMIT_ERROR); } }