Browse Source

update: fix

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

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

@@ -50,7 +50,7 @@ class CheckOrder extends Command
             switch ($item->status) {
                 // cancel
                 case 0:
-                    if (strtotime($item->created_at) <= (time() - 1800)) {
+                    if ($item->created_at <= (time() - 1800)) {
                         $orderService->cancel();
                     }
                     break;