红包第9次修改

This commit is contained in:
2025-10-11 16:07:12 +08:00
parent 4846be3538
commit 05f61dfe11

View File

@@ -46,14 +46,14 @@ if status == 0 then
end end
end end
if status ~= 1 then --if status ~= 1 then
return {0, "红包已结束"} -- return {0, "红包已结束"}
end --end
if currentTime > endTime then --if currentTime > endTime then
redis.call('HSET', redpacketKey, 'status', 2) -- redis.call('HSET', redpacketKey, 'status', 2)
return {0, "红包已结束"} -- return {0, "红包已结束"}
end --end
-- 检查是否已经抢过 -- 检查是否已经抢过
local hasGrabbed = redis.call('SISMEMBER', userSetKey, userId) local hasGrabbed = redis.call('SISMEMBER', userSetKey, userId)