修复购物车中选择赠品或者加价购商品,结算页计算商品总价报错的bug(不应该通过subtotal计算)
Code Review By Rock Zhang
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -475,7 +475,7 @@ class CartModel | @@ -475,7 +475,7 @@ class CartModel | ||
475 | } | 475 | } |
476 | 476 | ||
477 | // 累加商品金额 | 477 | // 累加商品金额 |
478 | - $goodsPrice += $single['subtotal']; | 478 | + $goodsPrice += $oneGoods['count'] * $oneGoods['price']; |
479 | 479 | ||
480 | $result['goods'][] = $oneGoods; | 480 | $result['goods'][] = $oneGoods; |
481 | } | 481 | } |
-
Please register or login to post a comment