|
@@ -223,6 +223,12 @@ class OrderService extends BaseService
|
|
|
$discountAmount = bcsub($totalPrice, $modifyPrice, 2);
|
|
$discountAmount = bcsub($totalPrice, $modifyPrice, 2);
|
|
|
$data['discountAmount'] = $discountAmount;
|
|
$data['discountAmount'] = $discountAmount;
|
|
|
}
|
|
}
|
|
|
|
|
+ //七夕节前后上线时下面这段要删除!!
|
|
|
|
|
+ if ($modifyPrice > $totalPrice) {
|
|
|
|
|
+ if (isset($data['labourCost']) == false) {
|
|
|
|
|
+ $data['labourCost'] = bcsub($modifyPrice, $totalPrice, 2);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
//保存组合
|
|
//保存组合
|
|
|
$groupName = $data['groupName'] ?? '';
|
|
$groupName = $data['groupName'] ?? '';
|