Commit d31a8fa7 authored by liuyuzhen's avatar liuyuzhen

购物车问题

parent f9b68450
......@@ -843,14 +843,14 @@ class GroupSaleServiceModel extends \Business\AbstractModel {
$storeExpressNum += $tempObj['goodsNum'];
}
if(isset($storeGcCouponPriceArray[$oneGoodsCommon['gcId']]['totalPrice'])){
$storeGcCouponPriceArray[$oneGoodsCommon['gcId']]['totalPrice'] += $goods['goods_price']*$tempObj['goodsNum'];
$storeGcCouponPriceArray[$oneGoodsCommon['gcId']]['totalPrice'] += $tempObj['goodsPrice']*$tempObj['goodsNum'];
}else{
$storeGcCouponPriceArray[$oneGoodsCommon['gcId']]['totalPrice'] = $goods['goods_price']*$tempObj['goodsNum'];
$storeGcCouponPriceArray[$oneGoodsCommon['gcId']]['totalPrice'] = $tempObj['goodsPrice']*$tempObj['goodsNum'];
}
if(isset($storeGoodsCommonCouponPriceArray[$tempObj['goodsCommonId']]['totalPrice'])){
$storeGoodsCommonCouponPriceArray[$tempObj['goodsCommonId']]['totalPrice'] +=$goods['goods_price']*$tempObj['goodsNum'];
$storeGoodsCommonCouponPriceArray[$tempObj['goodsCommonId']]['totalPrice'] +=$tempObj['goodsPrice']*$tempObj['goodsNum'];
}else{
$storeGoodsCommonCouponPriceArray[$tempObj['goodsCommonId']]['totalPrice'] =$goods['goods_price']*$tempObj['goodsNum'];
$storeGoodsCommonCouponPriceArray[$tempObj['goodsCommonId']]['totalPrice'] =$tempObj['goodsPrice']*$tempObj['goodsNum'];
}
$tempObj['gcId']=$goodsCommonStorages[$goods['goods_commonid']]['gcId'];
$tempObj['gc_id']=$goodsCommonStorages[$goods['goods_commonid']]['gc_id'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment