|
|
@@ -211,11 +211,15 @@ class OrderService extends BaseService
|
|
|
];
|
|
|
}
|
|
|
}
|
|
|
+ //运费
|
|
|
$data['sendCost'] = isset($data['sendCost']) && $data['sendCost'] > 0 ? $data['sendCost'] : 0;
|
|
|
$totalPrice = bcadd($goodsPrice, $data['sendCost'], 2);
|
|
|
//人工资材包装费
|
|
|
$labourCost = isset($data['labourCost']) && $data['labourCost'] > 0 ? $data['labourCost'] : 0;
|
|
|
$totalPrice = bcadd($totalPrice, $labourCost, 2);
|
|
|
+ //美团服务费和手续费
|
|
|
+ $serviceFee = isset($data['serviceFee']) && $data['serviceFee'] > 0 ? $data['serviceFee'] : 0;
|
|
|
+ $totalPrice = bcadd($totalPrice, $serviceFee, 2);
|
|
|
$modifyPrice = isset($data['modifyPrice']) && $data['modifyPrice'] > 0 ? $data['modifyPrice'] : 0;
|
|
|
//优惠
|
|
|
if ($modifyPrice < $totalPrice) {
|