user seed bonus batch key not expires

This commit is contained in:
xiaomlove
2024-03-27 02:19:46 +08:00
parent e25e03b155
commit d1530f7611

View File

@@ -183,7 +183,7 @@ for k, v in pairs(batchList) do
hashKey = ARGV[3]
end
redis.call("HSET", batchKey, hashKey, ARGV[6])
if isBatchKeyNew then
if (isBatchKeyNew and k > 1) then
redis.call("EXPIRE", batchKey, ARGV[5])
end
end