作者 何书鹏

订单结算优化

... ... @@ -216,7 +216,9 @@ class Order extends Api
$goods['sku_name'] = implode(' ',$sku_name); //规格名
}
$goods['number'] = $value['number'];
$goods['id'] = $value['id'];
if(!empty($value['id'])){
$goods['id'] = $value['id'];
}
$goods_array[] = $goods;
$sum_price = bcadd($sum_price,bcmul($sku['goods_price'],$value['number'],2),2);
}
... ...