Browse Source

update

adv_callback
dengbiao 1 month ago
parent
commit
817e336cb2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/mw/mw_limiter.go

+ 1
- 1
app/mw/mw_limiter.go View File

@@ -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{


Loading…
Cancel
Save