红包第10次修改

This commit is contained in:
2025-10-11 16:19:19 +08:00
parent 05f61dfe11
commit ec2110c07d

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)