shish 2 lat temu
rodzic
commit
07cb3f5b16
1 zmienionych plików z 7 dodań i 0 usunięć
  1. 7 0
      app-ghs/controllers/OrderController.php

+ 7 - 0
app-ghs/controllers/OrderController.php

@@ -927,6 +927,13 @@ class OrderController extends BaseController
             $post['packCost'] = isset($post['packCost']) && $post['packCost'] > 0 ? $post['packCost'] : 0;
         }
 
+        if ($book == 1) {
+            $bookSn = $shop->bookSn ?? 0;
+            if (empty($bookSn)) {
+                util::fail('请开启预订');
+            }
+        }
+
         $hasPay = $post['hasPay'] ?? dict::getDict('hasPay', 'unPay');
         $post['debt'] = OrderClass::DEBT_NO;
         if ($hasPay == dict::getDict('hasPay', 'debt')) {