Commit f4d9fe7d authored by hj's avatar hj

更新提交

parent 0e7eb861
...@@ -52,7 +52,7 @@ class ChemsiteOrdersService ...@@ -52,7 +52,7 @@ class ChemsiteOrdersService
} }
if(isset($discount[$productInfo['b_id']])){ if(isset($discount[$productInfo['b_id']])){
$productInfo['p_discount'] = round($discount[$productInfo['b_id']]['cd_discount'] * $productInfo['p_price']); $productInfo['p_discount'] = round(bcdiv($discount[$productInfo['b_id']]['cd_discount'], 10, 2) * $productInfo['p_price'], 2);
}else{ }else{
$productInfo['p_discount'] = $productInfo['p_price']; $productInfo['p_discount'] = $productInfo['p_price'];
} }
......
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