红包第10次修改
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user