Преглед изворни кода

注释会员专区锁客奖励

hefei пре 1 година
родитељ
комит
59da6519f6
2 измењених фајлова са 37 додато и 37 уклоњено
  1. 12 12
      app/common/repositories/store/order/StoreOrderRepository.php
  2. 25 25
      app/controller/api/Notify.php

+ 12 - 12
app/common/repositories/store/order/StoreOrderRepository.php

@@ -9775,18 +9775,18 @@ class StoreOrderRepository extends BaseRepository
9775 9775
                 }
9776 9776
             }
9777 9777
 
9778
-            //锁客收益
9779
-            if ($user_data['mer_id'] != 0) {
9780
-                $merchant_data = Db::name('merchant')->where('mer_id', $user_data['mer_id'])->find();
9781
-                $merchant_user_data = Db::name('user')->where('uid', $merchant_data['uid'])->find();
9782
-                if (!empty($merchant_data) && !empty($merchant_user_data)) {
9783
-                    $yj_amount_90 = bcmul($pv , 0.035, 2) * 0.9;
9784
-                    $fgj_amount_10 = bcmul($pv, 0.035, 2) * 0.1;//推广者的佣金抽10%到个人复购金
9785
-                    $this->fugou_user_log($merchant_data['uid'], $fgj_amount_10, $store_order_data['order_id'], 1, 1);
9786
-                    //推广佣金
9787
-                    $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']);
9788
-                }
9789
-            }
9778
+            //锁客收益 todo 会员专区不做锁客 20250415
9779
+//            if ($user_data['mer_id'] != 0) {
9780
+//                $merchant_data = Db::name('merchant')->where('mer_id', $user_data['mer_id'])->find();
9781
+//                $merchant_user_data = Db::name('user')->where('uid', $merchant_data['uid'])->find();
9782
+//                if (!empty($merchant_data) && !empty($merchant_user_data)) {
9783
+//                    $yj_amount_90 = bcmul($pv , 0.035, 2) * 0.9;
9784
+//                    $fgj_amount_10 = bcmul($pv, 0.035, 2) * 0.1;//推广者的佣金抽10%到个人复购金
9785
+//                    $this->fugou_user_log($merchant_data['uid'], $fgj_amount_10, $store_order_data['order_id'], 1, 1);
9786
+//                    //推广佣金
9787
+//                    $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']);
9788
+//                }
9789
+//            }
9790 9790
 
9791 9791
             //会员专区,给用户升级判断
9792 9792
             $orderList = Db::name("store_order")->where("uid", $store_order_data['uid'])->where("mer_id", 496)->where("status", "in", [0, 1, 2, 3])->select();

+ 25 - 25
app/controller/api/Notify.php

@@ -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);