@@ -13,7 +13,7 @@ redis.call('zremrangebyscore', key, 0, expired)
local current = tonumber(redis.call('zcard', key))
local next = current + 1
-if next > max then
+if next > limitCount then
-- 达到限流大小 返回 0
return 0;
else