|
|
@@ -520,31 +520,31 @@ class Notify
|
|
520
|
520
|
|
|
521
|
521
|
}
|
|
522
|
522
|
|
|
523
|
|
- //锁客收益
|
|
524
|
|
- if($user_data['mer_id'] != 0){
|
|
525
|
|
-
|
|
526
|
|
- $merchant_data = Db::name('merchant')->where('mer_id',$user_data['mer_id'])->find();
|
|
527
|
|
-
|
|
528
|
|
- $merchant_user_data = Db::name('user')->where('uid',$merchant_data['uid'])->find();
|
|
529
|
|
-
|
|
530
|
|
- if(!empty($merchant_user_data)){
|
|
531
|
|
-
|
|
532
|
|
-
|
|
533
|
|
- $yj_amount_90 = bcmul($pv * 0.9, 0.035,2);
|
|
534
|
|
- $fgj_amount_10 = bcmul($pv * 0.1, 0.035,2);//推广者的佣金抽10%到个人复购金
|
|
535
|
|
-
|
|
536
|
|
- $yj_amount = $merchant_data['brokerage_price'] + $yj_amount_90;
|
|
537
|
|
- $fgj_amount = $merchant_data['fugou'] + $fgj_amount_10;
|
|
538
|
|
- $this->fugou_user_log($merchant_data['uid'],$fgj_amount_10,$store_order_data['order_id'],1,1);
|
|
539
|
|
-
|
|
540
|
|
-
|
|
541
|
|
-
|
|
542
|
|
- //Db::name('user')->where('uid',$merchant_data['uid'])->update(['brokerage_price'=>$yj_amount,'fugou'=>$fgj_amount]);
|
|
543
|
|
- //推广佣金
|
|
544
|
|
- $this->bill_user_log($merchant_data['uid'],$yj_amount_90,$store_order_data['order_id'],3,$store_order_data['order_sn'],'推广获得佣金',$store_order_data['mer_id']);
|
|
545
|
|
- }
|
|
546
|
|
-
|
|
547
|
|
- }
|
|
|
523
|
+ //锁客收益 todo 会员专区不做锁客 20250415
|
|
|
524
|
+// if($user_data['mer_id'] != 0){
|
|
|
525
|
+//
|
|
|
526
|
+// $merchant_data = Db::name('merchant')->where('mer_id',$user_data['mer_id'])->find();
|
|
|
527
|
+//
|
|
|
528
|
+// $merchant_user_data = Db::name('user')->where('uid',$merchant_data['uid'])->find();
|
|
|
529
|
+//
|
|
|
530
|
+// if(!empty($merchant_user_data)){
|
|
|
531
|
+//
|
|
|
532
|
+//
|
|
|
533
|
+// $yj_amount_90 = bcmul($pv * 0.9, 0.035,2);
|
|
|
534
|
+// $fgj_amount_10 = bcmul($pv * 0.1, 0.035,2);//推广者的佣金抽10%到个人复购金
|
|
|
535
|
+//
|
|
|
536
|
+// $yj_amount = $merchant_data['brokerage_price'] + $yj_amount_90;
|
|
|
537
|
+// $fgj_amount = $merchant_data['fugou'] + $fgj_amount_10;
|
|
|
538
|
+// $this->fugou_user_log($merchant_data['uid'],$fgj_amount_10,$store_order_data['order_id'],1,1);
|
|
|
539
|
+//
|
|
|
540
|
+//
|
|
|
541
|
+//
|
|
|
542
|
+// //Db::name('user')->where('uid',$merchant_data['uid'])->update(['brokerage_price'=>$yj_amount,'fugou'=>$fgj_amount]);
|
|
|
543
|
+// //推广佣金
|
|
|
544
|
+// $this->bill_user_log($merchant_data['uid'],$yj_amount_90,$store_order_data['order_id'],3,$store_order_data['order_sn'],'推广获得佣金',$store_order_data['mer_id']);
|
|
|
545
|
+// }
|
|
|
546
|
+//
|
|
|
547
|
+// }
|
|
548
|
548
|
|
|
549
|
549
|
|
|
550
|
550
|
$fzone_paytype = json_decode($store_order_data['fzone_paytype'],true);
|