From a54f64b6981763ecfa226420eea5bc2736cf0919 Mon Sep 17 00:00:00 2001 From: tokumeikoi Date: Thu, 26 Nov 2020 14:44:00 +0800 Subject: [PATCH] update: check commission --- app/Console/Commands/CheckCommission.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/CheckCommission.php b/app/Console/Commands/CheckCommission.php index f8946834..65bdae18 100644 --- a/app/Console/Commands/CheckCommission.php +++ b/app/Console/Commands/CheckCommission.php @@ -47,7 +47,7 @@ class CheckCommission extends Command { if ((int)config('v2board.commission_auto_check_enable', 1)) { Order::where('commission_status', 0) - ->where('status', 3) + ->whereIn('status', [3, 4]) ->where('updated_at', '<=', strtotime('-3 day', time())) ->update([ 'commission_status' => 1 @@ -58,7 +58,7 @@ class CheckCommission extends Command public function autoPayCommission() { $order = Order::where('commission_status', 1) - ->where('status', 3) + ->whereIn('status', [3, 4]) ->get(); foreach ($order as $item) { if ($item->invite_user_id) {