|
|
@@ -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')) {
|