diff --git a/application/common/library/RedpacketLua.php b/application/common/library/RedpacketLua.php index 1ec11be..126fc20 100644 --- a/application/common/library/RedpacketLua.php +++ b/application/common/library/RedpacketLua.php @@ -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)