From 05f61dfe11b55fbcfc11f6512d5bf68f343ff207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Sat, 11 Oct 2025 16:07:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=A2=E5=8C=85=E7=AC=AC9=E6=AC=A1=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/library/RedpacketLua.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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)