|
@@ -301,8 +301,10 @@ class Notify
|
|
301
|
if($spread_data['user_group'] == 1){
|
301
|
if($spread_data['user_group'] == 1){
|
|
302
|
//给推广者分配佣金
|
302
|
//给推广者分配佣金
|
|
303
|
// $ylj_amount = $spread_data['annuity'] + round($pv * 0.3,2);
|
303
|
// $ylj_amount = $spread_data['annuity'] + round($pv * 0.3,2);
|
|
304
|
- $yj_amount_90 = round($pv * 0.21,2) * 0.9;
|
|
|
|
305
|
- $fgj_amount_10 = round($pv * 0.21,2) * 0.1;//推广者的佣金抽10%到个人复购金
|
|
|
|
|
|
304
|
+ // $yj_amount_90 = round($pv * 0.21,2) * 0.9;
|
|
|
|
305
|
+ $yj_amount_90 = round($pv * 0.3,2) * 0.9;
|
|
|
|
306
|
+ // $fgj_amount_10 = round($pv * 0.21,2) * 0.1;//推广者的佣金抽10%到个人复购金
|
|
|
|
307
|
+ $fgj_amount_10 = round($pv * 0.3,2) * 0.1;//推广者的佣金抽10%到个人复购金
|
|
306
|
|
308
|
|
|
307
|
$yj_amount = $spread_data['brokerage_price'] + $yj_amount_90;
|
309
|
$yj_amount = $spread_data['brokerage_price'] + $yj_amount_90;
|
|
308
|
$fgj_amount = $spread_data['fugou'] + $fgj_amount_10;
|
310
|
$fgj_amount = $spread_data['fugou'] + $fgj_amount_10;
|
|
@@ -310,8 +312,10 @@ class Notify
|
|
310
|
|
312
|
|
|
311
|
//Db::name('user')->where('uid',$spread_data['uid'])->update(['brokerage_price'=>$yj_amount,'fugou'=>$fgj_amount]);
|
313
|
//Db::name('user')->where('uid',$spread_data['uid'])->update(['brokerage_price'=>$yj_amount,'fugou'=>$fgj_amount]);
|
|
312
|
|
314
|
|
|
313
|
- $con = $spread_data['contribute'] + round($pv * 0.21,2);
|
|
|
|
314
|
- $score = $spread_data['score'] + round($pv * 0.21,2);
|
|
|
|
|
|
315
|
+ // $con = $spread_data['contribute'] + round($pv * 0.21,2);
|
|
|
|
316
|
+ $con = $spread_data['contribute'] + round($pv * 0.3,2);
|
|
|
|
317
|
+ // $score = $spread_data['score'] + round($pv * 0.21,2);
|
|
|
|
318
|
+ $score = $spread_data['score'] + round($pv * 0.3,2);
|
|
315
|
|
319
|
|
|
316
|
//贡献值和积分
|
320
|
//贡献值和积分
|
|
317
|
//Db::name('user')->where('uid',$spread_data['uid'])->update(["contribute"=>$con,"score"=>$score]);
|
321
|
//Db::name('user')->where('uid',$spread_data['uid'])->update(["contribute"=>$con,"score"=>$score]);
|
|
@@ -320,8 +324,10 @@ class Notify
|
|
320
|
|
324
|
|
|
321
|
//推广佣金
|
325
|
//推广佣金
|
|
322
|
$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'],0);
|
326
|
$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'],0);
|
|
323
|
- $this->con_log($spread_data['uid'],round($pv * 0.21,2),$store_order_data['order_id'],11,"推广精彩生活区商品赠送贡献值");
|
|
|
|
324
|
- $this->score_log($spread_data['uid'],round($pv * 0.21,2),$store_order_data['order_id'],11,"推广精彩生活区商品赠送积分");
|
|
|
|
|
|
327
|
+ // $this->con_log($spread_data['uid'],round($pv * 0.21,2),$store_order_data['order_id'],11,"推广精彩生活区商品赠送贡献值");
|
|
|
|
328
|
+ $this->con_log($spread_data['uid'],round($pv * 0.3,2),$store_order_data['order_id'],11,"推广精彩生活区商品赠送贡献值");
|
|
|
|
329
|
+ // $this->score_log($spread_data['uid'],round($pv * 0.21,2),$store_order_data['order_id'],11,"推广精彩生活区商品赠送积分");
|
|
|
|
330
|
+ $this->score_log($spread_data['uid'],round($pv * 0.3,2),$store_order_data['order_id'],11,"推广精彩生活区商品赠送积分");
|
|
325
|
|
331
|
|
|
326
|
|
332
|
|
|
327
|
|
333
|
|
|
@@ -550,7 +556,8 @@ class Notify
|
|
550
|
// $this->bill_user_log($user_data['spread_uid'],round($pv * 0.01,2),$store_order_data['order_id'],3,$group_order['group_order_sn'],'推广获得拥金'.round($pv * 0.01,2),$store_order_data['mer_id']);
|
556
|
// $this->bill_user_log($user_data['spread_uid'],round($pv * 0.01,2),$store_order_data['order_id'],3,$group_order['group_order_sn'],'推广获得拥金'.round($pv * 0.01,2),$store_order_data['mer_id']);
|
|
551
|
|
557
|
|
|
552
|
//获取贡献值和积分和佣金
|
558
|
//获取贡献值和积分和佣金
|
|
553
|
- $gx_jf = $spread_data['contribute'] + round($pv * 0.21,2);
|
|
|
|
|
|
559
|
+ // $gx_jf = $spread_data['contribute'] + round($pv * 0.21,2);
|
|
|
|
560
|
+ $gx_jf = $spread_data['contribute'] + round($pv * 0.3,2);
|
|
554
|
|
561
|
|
|
555
|
//$yj111 = $spread_data['brokerage_price'] + $yj1;
|
562
|
//$yj111 = $spread_data['brokerage_price'] + $yj1;
|
|
556
|
|
563
|
|
|
@@ -563,8 +570,10 @@ class Notify
|
|
563
|
|
570
|
|
|
564
|
|
571
|
|
|
565
|
//Db::name('user')->where('uid',$spread_data['uid'])->update(['contribute'=> $gx_jf,'score'=> $gx_jf,'brokerage_price'=> $yj_amount,'fugou'=>$fgj_amount]);
|
572
|
//Db::name('user')->where('uid',$spread_data['uid'])->update(['contribute'=> $gx_jf,'score'=> $gx_jf,'brokerage_price'=> $yj_amount,'fugou'=>$fgj_amount]);
|
|
566
|
- $this->con_log($spread_data['uid'],round($pv * 0.21,2),$store_order_data['order_id'],11,"推广会员专区商品赠送贡献值",1);
|
|
|
|
567
|
- $this->score_log($spread_data['uid'],round($pv * 0.21,2),$store_order_data['order_id'],11,"推广会员专区商品赠送积分",1);
|
|
|
|
|
|
573
|
+ // $this->con_log($spread_data['uid'],round($pv * 0.21,2),$store_order_data['order_id'],11,"推广会员专区商品赠送贡献值",1);
|
|
|
|
574
|
+ $this->con_log($spread_data['uid'],round($pv * 0.3,2),$store_order_data['order_id'],11,"推广会员专区商品赠送贡献值",1);
|
|
|
|
575
|
+ // $this->score_log($spread_data['uid'],round($pv * 0.21,2),$store_order_data['order_id'],11,"推广会员专区商品赠送积分",1);
|
|
|
|
576
|
+ $this->score_log($spread_data['uid'],round($pv * 0.3,2),$store_order_data['order_id'],11,"推广会员专区商品赠送积分",1);
|
|
568
|
//推广佣金
|
577
|
//推广佣金
|
|
569
|
$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']);
|
578
|
$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']);
|
|
570
|
}
|
579
|
}
|