红包第9次修改
This commit is contained in:
@@ -46,14 +46,14 @@ if status == 0 then
|
||||
end
|
||||
end
|
||||
|
||||
if status ~= 1 then
|
||||
return {0, "红包已结束"}
|
||||
end
|
||||
--if status ~= 1 then
|
||||
-- return {0, "红包已结束"}
|
||||
--end
|
||||
|
||||
if currentTime > endTime then
|
||||
redis.call('HSET', redpacketKey, 'status', 2)
|
||||
return {0, "红包已结束"}
|
||||
end
|
||||
--if currentTime > endTime then
|
||||
-- redis.call('HSET', redpacketKey, 'status', 2)
|
||||
-- return {0, "红包已结束"}
|
||||
--end
|
||||
|
||||
-- 检查是否已经抢过
|
||||
local hasGrabbed = redis.call('SISMEMBER', userSetKey, userId)
|
||||
|
||||
Reference in New Issue
Block a user