Commit 894339b9 authored by jianghaiming's avatar jianghaiming

update:set

parent d21b4ae4
...@@ -109,6 +109,8 @@ class MarketingGoodsService ...@@ -109,6 +109,8 @@ class MarketingGoodsService
}else{ }else{
$list[$i]['is_self_publish'] = 1; $list[$i]['is_self_publish'] = 1;
} }
//允许自己买自己的
$list[$i]['is_self_publish'] = 1;
$life_account_id = !empty($list[$i]['life_account_id']) ? $list[$i]['life_account_id'] : ''; $life_account_id = !empty($list[$i]['life_account_id']) ? $list[$i]['life_account_id'] : '';
...@@ -135,12 +137,12 @@ class MarketingGoodsService ...@@ -135,12 +137,12 @@ class MarketingGoodsService
//比例 //比例
if (!empty($secondCommission) && $commissionMode == 1) { if (!empty($secondCommission) && $commissionMode == 1) {
$price = !empty($list[$i]['price']) ? $list[$i]['price'] : 0; $price = !empty($list[$i]['price']) ? $list[$i]['price'] : 0;
$list[$i]['share_price'] = sprintf("%.2f",$secondCommission*$price/100); $list[$i]['share_price'] = substr(sprintf("%.3f",$secondCommission*$price/100),0,-1);
} }
//固定 //固定
if (!empty($commissionMode) && $commissionMode == 2) { if (!empty($commissionMode) && $commissionMode == 2) {
$list[$i]['share_price'] = sprintf("%.2f",$secondCommission/100); $list[$i]['share_price'] = substr(sprintf("%.3f",$secondCommission/100),0,-1);
} }
$content = $userId .'_' .$value['marketing_id']; $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