|
@@ -116,7 +116,7 @@ class GoodsClass extends BaseClass
|
|
|
PlantCgItemClass::addData($addCgItem);
|
|
PlantCgItemClass::addData($addCgItem);
|
|
|
$goodsPrice = bcadd($totalPrice, $goodsPrice, 2);
|
|
$goodsPrice = bcadd($totalPrice, $goodsPrice, 2);
|
|
|
}
|
|
}
|
|
|
- $sendCost = $data['sendCost'] ?? 0;
|
|
|
|
|
|
|
+ $sendCost = isset($data['sendCost']) && is_numeric($data['sendCost']) ? $data['sendCost'] : 0;
|
|
|
$labourCost = $data['labourCost'] ?? 0;
|
|
$labourCost = $data['labourCost'] ?? 0;
|
|
|
$otherCost = bcadd($sendCost, $labourCost, 2);
|
|
$otherCost = bcadd($sendCost, $labourCost, 2);
|
|
|
$prePrice = bcadd($goodsPrice, $otherCost, 2);
|
|
$prePrice = bcadd($goodsPrice, $otherCost, 2);
|