Browse Source

update: check order

tokumeikoi 3 years ago
parent
commit
afe8bb3171
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/Console/Commands/CheckOrder.php

+ 2 - 1
app/Console/Commands/CheckOrder.php

@@ -42,7 +42,8 @@ class CheckOrder extends Command
      */
     public function handle()
     {
-        $orders = Order::get();
+        $orders = Order::whereIn('status', [0, 1])
+            ->get();
         foreach ($orders as $item) {
             $orderService = new OrderService($item);
             switch ($item->status) {