mirror of
https://github.com/v2board/v2board.git
synced 2025-06-12 12:37:54 +08:00
fix: stat
This commit is contained in:
@ -49,7 +49,7 @@ class CheckCommission extends Command
|
||||
if ((int)config('v2board.commission_auto_check_enable', 1)) {
|
||||
Order::where('commission_status', 0)
|
||||
->where('invite_user_id', '!=', NULL)
|
||||
->whereIn('status', [3, 4])
|
||||
->whereIn('status', '!=', [0, 2])
|
||||
->where('updated_at', '<=', strtotime('-3 day', time()))
|
||||
->update([
|
||||
'commission_status' => 1
|
||||
|
@ -52,7 +52,7 @@ class V2BoardStatistics extends Command
|
||||
$startAt = strtotime('-1 day', $endAt);
|
||||
$builder = Order::where('created_at', '>=', $startAt)
|
||||
->where('created_at', '<', $endAt)
|
||||
->whereIn('status', [3, 4]);
|
||||
->whereIn('status', '!=', [0, 2]);
|
||||
$orderCount = $builder->count();
|
||||
$orderAmount = $builder->sum('total_amount');
|
||||
$builder = $builder->where('commission_balance', '!=', 0)
|
||||
|
Reference in New Issue
Block a user