|
|
@@ -1279,9 +1279,9 @@ class OrderController extends BaseController
|
|
|
$unitPrice = $currentProduct['price'] ?? 0;
|
|
|
if ($unitPrice > $reachNumDiscount) {
|
|
|
$newUnitPrice = bcsub($unitPrice, $reachNumDiscount, 2);
|
|
|
- $productList[$ptKey]['price'] = $newUnitPrice;
|
|
|
$calcPrice = bcmul($reachNumDiscount, $bigNum, 2);
|
|
|
if ($calcPrice > 0 && isset($post['modifyPrice']) && $post['modifyPrice'] > $calcPrice) {
|
|
|
+ $productList[$ptKey]['price'] = $newUnitPrice;
|
|
|
//提交给后端的总金额也要减掉,否则会有问题
|
|
|
$post['modifyPrice'] = bcsub($post['modifyPrice'], $calcPrice, 2);
|
|
|
$post['reachDiscountPrice'] = bcadd($post['reachDiscountPrice'], $calcPrice, 2);
|