红包过期处理
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user