收款通知性能优化

This commit is contained in:
技术老胡
2024-11-06 16:17:23 +08:00
parent 6acecb0596
commit 4228355d36
6 changed files with 60 additions and 58 deletions

View File

@@ -176,7 +176,7 @@ class Order extends BaseModel
// 查询有效期内的成交订单
public function scopeDealOrder($query)
{
$query->where('close_time', '>', self::getFormatTime())->where('state', 1);
$query->where('close_time', '>', self::getFormatTime(time() - self::$activity_time))->where('state', 1);
}
// 查询超时过期订单
public function scopeTimeoutOrder($query)