红包过期处理

This commit is contained in:
2025-10-14 11:27:38 +08:00
parent 6308a03610
commit 4651940f46

View File

@@ -247,7 +247,7 @@ class PerformPerSecond
$expiredRedpackets = Db::name('redpacket') $expiredRedpackets = Db::name('redpacket')
// ->where('status', Redpacket::STATUS_ACTIVE) // ->where('status', Redpacket::STATUS_ACTIVE)
->where('end_time', '<', $now) ->where('end_time', '<', $now)
->where('left_count', '>', 0) // ->where('left_count', '>', 0)
->select(); ->select();
foreach ($expiredRedpackets as $redpacket) { foreach ($expiredRedpackets as $redpacket) {