Commit 4759e409 authored by jianghaiming's avatar jianghaiming

update:set

parent 894339b9
......@@ -137,12 +137,12 @@ class MarketingGoodsService
//比例
if (!empty($secondCommission) && $commissionMode == 1) {
$price = !empty($list[$i]['price']) ? $list[$i]['price'] : 0;
$list[$i]['share_price'] = substr(sprintf("%.3f",$secondCommission*$price/100),0,-1);
$list[$i]['share_price'] = substr(sprintf("%.4f",$secondCommission*$price/100),0,-2);
}
//固定
if (!empty($commissionMode) && $commissionMode == 2) {
$list[$i]['share_price'] = substr(sprintf("%.3f",$secondCommission/100),0,-1);
$list[$i]['share_price'] = substr(sprintf("%.4f",$secondCommission/100),0,-2);
}
$content = $userId .'_' .$value['marketing_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