Explorar o código

订单到期时间确认

shish %!s(int64=5) %!d(string=hai) anos
pai
achega
ca7b84bfc9
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  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('订单已过期');
+            }
         }
     }