|
|
@@ -9823,7 +9823,7 @@ class StoreOrderRepository extends BaseRepository
|
|
9823
|
9823
|
$yongjin = $spread_data['brokerage_price'] + $yj_amount_90;
|
|
9824
|
9824
|
$fgj_amount = $spread_data['fugou'] + $fgj_amount_10;
|
|
9825
|
9825
|
|
|
9826
|
|
- $this->score_log($spread_data['uid'], bcmul($pv, $rate, 2), $store_order_data['order_id'], 11, "推广会员专区商品赠送积分", 1);
|
|
|
9826
|
+ $this->score_log($spread_data['uid'], bcmul($gx_jf, $rate, 2), $store_order_data['order_id'], 11, "推广会员专区商品赠送积分", 1);
|
|
9827
|
9827
|
|
|
9828
|
9828
|
// if ($spread_data['user_group'] == 2) {
|
|
9829
|
9829
|
|
|
|
@@ -9909,7 +9909,7 @@ class StoreOrderRepository extends BaseRepository
|
|
9909
|
9909
|
if ($spread_data['user_group'] == 1) {
|
|
9910
|
9910
|
|
|
9911
|
9911
|
//获取贡献值和积分和佣金
|
|
9912
|
|
- $gx_jf = $spread_data['contribute'] + bcmul($pv, $rate, 2);
|
|
|
9912
|
+ // $gx_jf = $spread_data['contribute'] + bcmul($pv, $rate, 2);
|
|
9913
|
9913
|
|
|
9914
|
9914
|
|
|
9915
|
9915
|
$yj_amount_90 = bcmul($yj1, 0.9, 2);
|
|
|
@@ -9921,8 +9921,8 @@ class StoreOrderRepository extends BaseRepository
|
|
9921
|
9921
|
|
|
9922
|
9922
|
|
|
9923
|
9923
|
//Db::name('user')->where('uid',$spread_data['uid'])->update(['contribute'=> $gx_jf,'score'=> $gx_jf,'brokerage_price'=> $yj_amount,'fugou'=>$fgj_amount]);
|
|
9924
|
|
- $this->con_log($spread_data['uid'], bcmul($pv, $rate, 2), $store_order_data['order_id'], 11, "推广会员专区商品赠送贡献值", 1, bcmul($pv, 0.21, 2));
|
|
9925
|
|
- $this->score_log($spread_data['uid'], bcmul($pv, $rate, 2), $store_order_data['order_id'], 11, "推广会员专区商品赠送积分", 1);
|
|
|
9924
|
+ $this->con_log($spread_data['uid'], bcmul($gx_jf, 0.3, 2), $store_order_data['order_id'], 11, "推广会员专区商品赠送贡献值", 1, bcmul($gx_jf, 0.3, 2));
|
|
|
9925
|
+ $this->score_log($spread_data['uid'], bcmul($gx_jf, $rate, 2), $store_order_data['order_id'], 11, "推广会员专区商品赠送积分", 1);
|
|
9926
|
9926
|
//推广佣金
|
|
9927
|
9927
|
$this->bill_user_log($spread_data['uid'], $yj_amount_90, $store_order_data['order_id'], 3, $store_order_data['order_sn'], '推广获得佣金' . $yj_amount_90, $store_order_data['mer_id']);
|
|
9928
|
9928
|
}
|