Ver Fonte

预订金额

shish há 2 anos atrás
pai
commit
8d4c37e5d0
1 ficheiros alterados com 10 adições e 0 exclusões
  1. 10 0
      app-ghs/controllers/OrderController.php

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

@@ -845,6 +845,16 @@ class OrderController extends BaseController
             }
         }
 
+        if ($book == 1) {
+            foreach ($productList as $currentKey => $currentProduct) {
+                //帮开预订单没有价格
+                $productList[$currentKey]['price'] = 0.06;
+            }
+            $post['hasPay'] = 1;
+            $post['payWay'] = 0;
+        }
+
+
         //4秒内不允许重复开单
         $staffId = $this->shopAdminId ?? 0;
         $cacheKey = 'ghs_create_order_' . $staffId . '_' . $customId;