Browse Source

订单到期时间确认

shish 5 years ago
parent
commit
ca7b84bfc9
1 changed files with 4 additions and 2 deletions
  1. 4 2
      biz-ghs/order/services/OrderService.php

+ 4 - 2
biz-ghs/order/services/OrderService.php

@@ -279,8 +279,10 @@ class OrderService extends BaseService
         if ($order['shopId'] != $shopId) {
             util::fail('不是您的订单');
         }
-        if (isset($order['deadline']) && $now > $order['deadline']) {
-            util::fail('订单已过期');
+        if (isset($order['status']) && $order['status'] == OrderClass::ORDER_STATUS_UN_PAY) {
+            if (isset($order['deadline']) && $now > $order['deadline']) {
+                util::fail('订单已过期');
+            }
         }
     }