|
|
@@ -159,13 +159,15 @@ class OrderController extends BaseController
|
|
|
if (empty($product)) {
|
|
|
util::fail('请选择花材');
|
|
|
}
|
|
|
- $actPrice = 0;
|
|
|
+ $actPrice = $post['packingFee']??0; //包装费
|
|
|
$orderProduct = [];
|
|
|
+ $productInfo = ProductClass::formatProductInfo($product);
|
|
|
+ $actPrice = bcadd($actPrice,$productInfo['price'],2);
|
|
|
foreach ($product as $key => $val) {
|
|
|
$productId = $val['productId'];
|
|
|
$bigNum = $val['bigNum'];
|
|
|
$smallNum = $val['smallNum'];
|
|
|
- $actPrice += 2;
|
|
|
+
|
|
|
$orderProduct[] = [
|
|
|
'productId' => $productId,
|
|
|
'bigNum' => $bigNum,
|