Przeglądaj źródła

订单到期时间确认

shish 5 lat temu
rodzic
commit
ca7b84bfc9
1 zmienionych plików z 4 dodań i 2 usunięć
  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) {
         if ($order['shopId'] != $shopId) {
             util::fail('不是您的订单');
             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('订单已过期');
+            }
         }
         }
     }
     }