914-17:00修改

This commit is contained in:
JACKYMYPERSON
2025-09-14 17:01:36 +08:00
parent 4b54c6f04b
commit db98ed80e2
5 changed files with 176 additions and 153 deletions

View File

@@ -0,0 +1,15 @@
package scripts
var Luascript_forkill = `
local key = KEYS[1]
local jian = tonumber(ARGV[1])
local dingdan = ARGV[2]
local nums = tonumber(redis.call("get", KEYS[1]) or "0")
if nums > 0 then
redis.call("DECRBY", KEYS[1], jian)
redis.call("LPUSH", KEYS[2], dingdan)
return 1
else
return 0
end
`