Explorar el Código

update: check order

tokumeikoi hace 3 años
padre
commit
afe8bb3171
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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) {