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{