Browse Source

update: set cancel order interval to 2 hours

v2board 2 years ago
parent
commit
07de70d8ab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Jobs/OrderHandleJob.php

+ 1 - 1
app/Jobs/OrderHandleJob.php

@@ -42,7 +42,7 @@ class OrderHandleJob implements ShouldQueue
         switch ($this->order->status) {
             // cancel
             case 0:
-                if ($this->order->created_at <= (time() - 1800)) {
+                if ($this->order->created_at <= (time() - 3600 * 2)) {
                     $orderService->cancel();
                 }
                 break;