|
|
@@ -574,6 +574,8 @@ class PurchaseClass extends BaseClass
|
|
|
$sjId = $data['sjId'] ?? 0;
|
|
|
$mainId = $data['mainId'] ?? 0;
|
|
|
$ghsId = $data['ghsId'] ?? 0;
|
|
|
+ $book = $data['book'] ?? 0;
|
|
|
+ $shopAdminId = $data['shopAdminId'] ?? 0;
|
|
|
|
|
|
if ($live == 1) {
|
|
|
//花店真实向批发店采购花材,因为拿的供货商的ID,所以需要转化花店的id
|
|
|
@@ -634,8 +636,13 @@ class PurchaseClass extends BaseClass
|
|
|
//用批发店的花材名称
|
|
|
$itemName = $currentGhsProduct['name'] ?? '';
|
|
|
$cover = $currentGhsProduct['cover'] ?? '';
|
|
|
- //用批发店花材的价格
|
|
|
- $price = ProductClass::getFinalPrice($currentGhsProduct, $giveLevel, $priceMap, $addPriceMap, $userPrice, $itemNum);
|
|
|
+ //如果零售店自己下预订单,预付0.1元
|
|
|
+ if ($book == 1 && $shopAdminId > 0) {
|
|
|
+ $price = 0.1;
|
|
|
+ } else {
|
|
|
+ //用批发店花材的价格
|
|
|
+ $price = ProductClass::getFinalPrice($currentGhsProduct, $giveLevel, $priceMap, $addPriceMap, $userPrice, $itemNum);
|
|
|
+ }
|
|
|
$thisPrice = $price;
|
|
|
|
|
|
$reachNum = $currentGhsProduct['reachNum'] ?? 0;
|
|
|
@@ -740,7 +747,6 @@ class PurchaseClass extends BaseClass
|
|
|
$data['weight'] = $totalWeight;
|
|
|
|
|
|
//预订单需要增加服务费
|
|
|
- $book = $data['book'] ?? 0;
|
|
|
if ($book == 1) {
|
|
|
$kiloFee = $ghs['kiloFee'] ?? 0;
|
|
|
$miniKilo = $ghs['miniKilo'] ?? 0;
|