From 817e336cb2fdfd510193dd26afd1a864ad2468f2 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Tue, 19 Nov 2024 22:04:51 +0800 Subject: [PATCH] update --- app/mw/mw_limiter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mw/mw_limiter.go b/app/mw/mw_limiter.go index 3c9fb79..00f9d4e 100644 --- a/app/mw/mw_limiter.go +++ b/app/mw/mw_limiter.go @@ -56,7 +56,7 @@ func Limiter(c *gin.Context) { // 2s后没返回自动释放 go cache.SetEx(Md5, "0", ttl) - key := "NEW_LIMITER_APP_COMM_" + ip + key := "LIMITER_EGG_APP" + ip reqs, _ := cache.GetInt(key) if reqs >= limit { c.AbortWithStatusJSON(429, gin.H{