xialei 1 год назад
Родитель
Сommit
df2efc9963

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

@@ -9663,7 +9663,7 @@ class StoreOrderRepository extends BaseRepository
9663 9663
                         //积分
9664 9664
                         $this->score_log($spread_data['uid'], $ssf, $store_order_data['order_id'], 11, "精彩生活区商品赠送积分");
9665 9665
                         // //推广佣金
9666
-                        $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);
9666
+                        $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);
9667 9667
                         //养老金
9668 9668
                         $this->bill_user_log($spread_data['uid'], bcmul($pv, 0.05, 2), $store_order_data['order_id'], 5, $store_order_data['order_sn'], '推广获得养老金' . bcmul($pv, 0.05, 2), $store_order_data['mer_id'], 0);
9669 9669
                     }
@@ -9689,7 +9689,7 @@ class StoreOrderRepository extends BaseRepository
9689 9689
 
9690 9690
                         //推广养老金
9691 9691
                         //推广佣金
9692
-                        $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);
9692
+                        $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);
9693 9693
                         // 贡献值
9694 9694
                         $this->con_log($spread_data['uid'], $pv, $store_order_data['order_id'], 11, "推广会员专区商品赠送贡献值");
9695 9695
                         //积分
@@ -9718,7 +9718,7 @@ class StoreOrderRepository extends BaseRepository
9718 9718
 
9719 9719
                         // Db::name('user')->where('uid',$merchant_data['uid'])->update(['brokerage_price'=>$yj_amount,'fugou'=>$fgj_amount]);
9720 9720
                         //推广佣金
9721
-                        $this->bill_user_log($merchant_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);
9721
+                        $this->bill_user_log($merchant_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);
9722 9722
 
9723 9723
                     }
9724 9724
 
@@ -9889,7 +9889,7 @@ class StoreOrderRepository extends BaseRepository
9889 9889
                     //养老金
9890 9890
                     $this->bill_user_log($spread_data['uid'], bcmul($pv, 0.035, 2), $store_order_data['order_id'], 5, $store_order_data['order_sn'], '消费获得养老金' . round($pv * 0.035, 2), $store_order_data['mer_id']);
9891 9891
                     //佣金
9892
-                    $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']);
9892
+                    $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']);
9893 9893
                     //复购金
9894 9894
                     $this->fugou_user_log($spread_data['uid'], $fgj_amount_10, $store_order_data['order_id'], 1, 1);
9895 9895
 
@@ -9914,7 +9914,7 @@ class StoreOrderRepository extends BaseRepository
9914 9914
                     $this->con_log($spread_data['uid'], bcmul($pv, 0.21, 2), $store_order_data['order_id'], 11, "推广会员专区商品赠送贡献值", 1);
9915 9915
                     $this->score_log($spread_data['uid'], bcmul($pv, 0.21, 2), $store_order_data['order_id'], 11, "推广会员专区商品赠送积分", 1);
9916 9916
                     //推广佣金
9917
-                    $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']);
9917
+                    $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']);
9918 9918
                 }
9919 9919
 
9920 9920
 
@@ -9937,7 +9937,7 @@ class StoreOrderRepository extends BaseRepository
9937 9937
                 //养老金
9938 9938
                 $this->bill_user_log($spread_data['uid'], bcmul($pv, 0.035, 2), $store_order_data['order_id'], 5, $store_order_data['order_sn'], '消费获得养老金' . bcmul($pv, 0.035, 2), $store_order_data['mer_id']);
9939 9939
                 //佣金
9940
-                $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']);
9940
+                $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']);
9941 9941
                 //复购金
9942 9942
                 $this->fugou_user_log($spread_data['uid'], $fgj_amount_10, $store_order_data['order_id'], 1, 1);
9943 9943
 
@@ -10019,7 +10019,7 @@ class StoreOrderRepository extends BaseRepository
10019 10019
 
10020 10020
                     // Db::name('user')->where('uid',$merchant_data['uid'])->update(['brokerage_price'=>$yj_amount,'fugou'=>$fgj_amount]);
10021 10021
                     //推广佣金
10022
-                    $this->bill_user_log($merchant_data['uid'], bcmul($pv, 0.35, 2), $store_order_data['order_id'], 3, $store_order_data['order_sn'], '推广获得金' . round($pv * 0.35, 2), $store_order_data['mer_id']);
10022
+                    $this->bill_user_log($merchant_data['uid'], bcmul($pv, 0.35, 2), $store_order_data['order_id'], 3, $store_order_data['order_sn'], '推广获得金' . round($pv * 0.35, 2), $store_order_data['mer_id']);
10023 10023
                 }
10024 10024
 
10025 10025
             }
@@ -10172,7 +10172,7 @@ class StoreOrderRepository extends BaseRepository
10172 10172
                         //积分
10173 10173
                         $this->score_log($spread_data['uid'], $ssf, $store_order_data['order_id'], 12, "商贸区商品赠送积分");
10174 10174
                         //推广佣金
10175
-                        $this->bill_user_log($spread_data['uid'], $yj_amount_90, $store_order_data['order_id'], 3, $group_order['group_order_sn'], '推广获得金' . $yj_amount_90, $store_order_data['mer_id'], 0);
10175
+                        $this->bill_user_log($spread_data['uid'], $yj_amount_90, $store_order_data['order_id'], 3, $group_order['group_order_sn'], '推广获得金' . $yj_amount_90, $store_order_data['mer_id'], 0);
10176 10176
                         //养老金
10177 10177
                         $this->bill_user_log($spread_data['uid'], bcmul($pv, 0.05, 2), $store_order_data['order_id'], 5, $group_order['group_order_sn'], '推广获得养老金' . round($pv * 0.05, 2), $store_order_data['mer_id'], 0);
10178 10178
                     }
@@ -10197,7 +10197,7 @@ class StoreOrderRepository extends BaseRepository
10197 10197
                         // Db::name('user')->where('uid',$spread_data['uid'])->update(["contribute"=>$con,"score"=>$score]);
10198 10198
 
10199 10199
                         //推广佣金
10200
-                        $this->bill_user_log($spread_data['uid'], $yj_amount_90, $store_order_data['order_id'], 3, $group_order['group_order_sn'], '推广获得金' . $yj_amount_90, $store_order_data['mer_id'], 0);
10200
+                        $this->bill_user_log($spread_data['uid'], $yj_amount_90, $store_order_data['order_id'], 3, $group_order['group_order_sn'], '推广获得金' . $yj_amount_90, $store_order_data['mer_id'], 0);
10201 10201
                         // 贡献值
10202 10202
                         $this->con_log($spread_data['uid'], $pv, $store_order_data['order_id'], 12, "推广商贸区商品赠送贡献值");
10203 10203
                         // 积分
@@ -10219,7 +10219,7 @@ class StoreOrderRepository extends BaseRepository
10219 10219
                         $this->fugou_user_log($merchant_data['uid'], $fgj_amount_10, $store_order_data['order_id'], 1);
10220 10220
 
10221 10221
                         //推广佣金
10222
-                        $this->bill_user_log($merchant_data['uid'], $yj_amount_90, $store_order_data['order_id'], 3, $group_order['group_order_sn'], '推广获得金' . $yj_amount_90, $store_order_data['mer_id'], 0);
10222
+                        $this->bill_user_log($merchant_data['uid'], $yj_amount_90, $store_order_data['order_id'], 3, $group_order['group_order_sn'], '推广获得金' . $yj_amount_90, $store_order_data['mer_id'], 0);
10223 10223
                     }
10224 10224
                     /** @var OrderMerchantRepository $orderMerchantRepository */
10225 10225
                     $orderMerchantRepository = app()->make(OrderMerchantRepository::class);

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

@@ -291,7 +291,7 @@ class Notify
291 291
                                             //积分
292 292
                                             $this->score_log($spread_data['uid'],$ssf,$store_order_data['order_id'],11,"精彩生活区商品赠送积分");
293 293
                                             // //推广佣金
294
-                                            $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);
294
+                                            $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);
295 295
                                             //养老金
296 296
                                             $this->bill_user_log($spread_data['uid'],round($pv * 0.05,2),$store_order_data['order_id'],5,$store_order_data['order_sn'],'推广获得养老金'.round($pv * 0.05,2),$store_order_data['mer_id'],0);
297 297
                                         }
@@ -318,7 +318,7 @@ class Notify
318 318
                                             //推广养老金
319 319
 
320 320
                                             //推广佣金
321
-                                            $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);
321
+                                            $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);
322 322
                                             $this->con_log($spread_data['uid'],round($pv * 0.21,2),$store_order_data['order_id'],11,"推广精彩生活区商品赠送贡献值");
323 323
                                             $this->score_log($spread_data['uid'],round($pv * 0.21,2),$store_order_data['order_id'],11,"推广精彩生活区商品赠送积分");
324 324
 
@@ -352,7 +352,7 @@ class Notify
352 352
 
353 353
                                             //Db::name('user')->where('uid',$merchant_data['uid'])->update(['brokerage_price'=>$yj_amount,'fugou'=>$fgj_amount]);
354 354
                                             //推广佣金
355
-                                            $this->bill_user_log($merchant_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);
355
+                                            $this->bill_user_log($merchant_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);
356 356
 
357 357
                                         }
358 358
 
@@ -533,7 +533,7 @@ class Notify
533 533
                                         //养老金
534 534
                                         $this->bill_user_log($spread_data['uid'],round($pv * 0.035,2),$store_order_data['order_id'],5,$store_order_data['order_sn'],'消费获得养老金'.round($pv * 0.035,2),$store_order_data['mer_id']);
535 535
                                         //佣金
536
-                                        $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']);
536
+                                        $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']);
537 537
                                         //复购金
538 538
                                         $this->fugou_user_log($spread_data['uid'],$fgj_amount_10,$store_order_data['order_id'],1,1);
539 539
 
@@ -546,7 +546,7 @@ class Notify
546 546
                                         // //推广养老金
547 547
                                         // $this->bill_user_log($user_data['spread_uid'],round($pv * 0.01,2),$store_order_data['order_id'],5,$group_order['group_order_sn'],'推广获得养老金'.round($pv * 0.01,2),$store_order_data['mer_id']);
548 548
                                         // //推广佣金
549
-                                        // $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']);
549
+                                        // $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']);
550 550
 
551 551
                                         //获取贡献值和积分和佣金
552 552
                                         $gx_jf = $spread_data['contribute'] + bcmul($pv, 0.21,2);
@@ -565,7 +565,7 @@ class Notify
565 565
                                         $this->con_log($spread_data['uid'],round($pv * 0.21,2),$store_order_data['order_id'],11,"推广会员专区商品赠送贡献值",1);
566 566
                                         $this->score_log($spread_data['uid'],round($pv * 0.21,2),$store_order_data['order_id'],11,"推广会员专区商品赠送积分",1);
567 567
                                         //推广佣金
568
-                                        $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']);
568
+                                        $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']);
569 569
                                     }
570 570
 
571 571
 
@@ -593,7 +593,7 @@ class Notify
593 593
                                     //养老金
594 594
                                     $this->bill_user_log($spread_data['uid'],round($pv * 0.035,2),$store_order_data['order_id'],5,$store_order_data['order_sn'],'消费获得养老金'.round($pv * 0.035,2),$store_order_data['mer_id']);
595 595
                                     //佣金
596
-                                    $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']);
596
+                                    $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']);
597 597
                                     //复购金
598 598
                                     $this->fugou_user_log($spread_data['uid'],$fgj_amount_10,$store_order_data['order_id'],1,1);
599 599
 
@@ -636,7 +636,7 @@ class Notify
636 636
 
637 637
                                         //Db::name('user')->where('uid',$merchant_data['uid'])->update(['brokerage_price'=>$yj_amount,'fugou'=>$fgj_amount]);
638 638
                                         //推广佣金
639
-                                        $this->bill_user_log($merchant_data['uid'],round($pv * 0.35,2),$store_order_data['order_id'],3,$store_order_data['order_sn'],'推广获得金'.round($pv * 0.35,2),$store_order_data['mer_id']);
639
+                                        $this->bill_user_log($merchant_data['uid'],round($pv * 0.35,2),$store_order_data['order_id'],3,$store_order_data['order_sn'],'推广获得金'.round($pv * 0.35,2),$store_order_data['mer_id']);
640 640
                                     }
641 641
 
642 642
                                 }

+ 7 - 7
app/controller/api/store/merchant/Taskorder.php

@@ -1593,7 +1593,7 @@ public function getbig_samll_datas_copy($user_id) {
1593 1593
                     //积分
1594 1594
                     $this->score_log($spread_data['uid'],$ssf,$store_order_data['order_id'],11,"精彩生活区商品赠送积分");
1595 1595
                     // //推广佣金
1596
-                    $this->bill_user_log($spread_data['uid'],$yj_amount_90,$store_order_data['order_id'],3,$group_order['group_order_sn'],'推广获得金'.$yj_amount_90,$store_order_data['mer_id'],0);
1596
+                    $this->bill_user_log($spread_data['uid'],$yj_amount_90,$store_order_data['order_id'],3,$group_order['group_order_sn'],'推广获得金'.$yj_amount_90,$store_order_data['mer_id'],0);
1597 1597
                     //养老金
1598 1598
                     $this->bill_user_log($spread_data['uid'],round($pv * 0.05,2),$store_order_data['order_id'],5,$group_order['group_order_sn'],'推广获得养老金'.round($pv * 0.05,2),$store_order_data['mer_id'],0);
1599 1599
                 }
@@ -1620,7 +1620,7 @@ public function getbig_samll_datas_copy($user_id) {
1620 1620
                   //推广养老金
1621 1621
                  // $this->bill_user_log($spread_data['uid'],round($pv * 0.3,2),$store_order_data['order_id'],5,$group_order['group_order_sn'],'推广获得养老金'.round($pv * 0.3,2),$store_order_data['mer_id']);
1622 1622
                   //推广佣金
1623
-                  $this->bill_user_log($spread_data['uid'],$yj_amount_90,$store_order_data['order_id'],3,$group_order['group_order_sn'],'推广获得金'.$yj_amount_90,$store_order_data['mer_id'],0);
1623
+                  $this->bill_user_log($spread_data['uid'],$yj_amount_90,$store_order_data['order_id'],3,$group_order['group_order_sn'],'推广获得金'.$yj_amount_90,$store_order_data['mer_id'],0);
1624 1624
                   $this->con_log($spread_data['uid'],round($pv * 0.03,2),$store_order_data['order_id'],11,"推广会员专区商品赠送贡献值");
1625 1625
                   $this->score_log($spread_data['uid'],round($pv * 0.03,2),$store_order_data['order_id'],11,"推广会员专区商品赠送积分");
1626 1626
                   
@@ -1654,7 +1654,7 @@ public function getbig_samll_datas_copy($user_id) {
1654 1654
                     
1655 1655
                     Db::name('user')->where('uid',$merchant_data['uid'])->update(['brokerage_price'=>$yj_amount,'fugou'=>$fgj_amount]);
1656 1656
                 //推广佣金
1657
-                $this->bill_user_log($merchant_data['uid'],  $yj_amount_90,$store_order_data['order_id'],3,$group_order['group_order_sn'],'推广获得金'.  $yj_amount_90,$store_order_data['mer_id'],0);
1657
+                $this->bill_user_log($merchant_data['uid'],  $yj_amount_90,$store_order_data['order_id'],3,$group_order['group_order_sn'],'推广获得金'.  $yj_amount_90,$store_order_data['mer_id'],0);
1658 1658
                         
1659 1659
                         }
1660 1660
 
@@ -1804,7 +1804,7 @@ public function getbig_samll_datas_copy($user_id) {
1804 1804
                 //养老金
1805 1805
                 $this->bill_user_log($spread_data['uid'],round($pv * 0.035,2),$store_order_data['order_id'],5,$group_order['group_order_sn'],'消费获得养老金'.round($pv * 0.035,2),$store_order_data['mer_id']);
1806 1806
                 //佣金
1807
-                $this->bill_user_log($spread_data['uid'], $yj_amount_90,$store_order_data['order_id'],3,$group_order['group_order_sn'],'推广获得金'. $yj_amount_90,$store_order_data['mer_id']);
1807
+                $this->bill_user_log($spread_data['uid'], $yj_amount_90,$store_order_data['order_id'],3,$group_order['group_order_sn'],'推广获得金'. $yj_amount_90,$store_order_data['mer_id']);
1808 1808
                 //复购金
1809 1809
                 $this->fugou_user_log($spread_data['uid'],$fgj_amount_10,$store_order_data['order_id'],1);
1810 1810
 
@@ -1817,7 +1817,7 @@ public function getbig_samll_datas_copy($user_id) {
1817 1817
                     // //推广养老金
1818 1818
                     // $this->bill_user_log($user_data['spread_uid'],round($pv * 0.01,2),$store_order_data['order_id'],5,$group_order['group_order_sn'],'推广获得养老金'.round($pv * 0.01,2),$store_order_data['mer_id']);
1819 1819
                     // //推广佣金
1820
-                    // $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']);
1820
+                    // $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']);
1821 1821
                     
1822 1822
                 //获取贡献值和积分和佣金
1823 1823
                 $gx_jf = $spread_data['contribute'] + round($pv * 0.03,2);
@@ -1836,7 +1836,7 @@ public function getbig_samll_datas_copy($user_id) {
1836 1836
                 $this->con_log($spread_data['uid'],round($pv * 0.03,2),$store_order_data['order_id'],11,"推广会员专区商品赠送贡献值");
1837 1837
                 $this->score_log($spread_data['uid'],round($pv * 0.03,2),$store_order_data['order_id'],11,"推广会员专区商品赠送积分");
1838 1838
                 //推广佣金
1839
-                $this->bill_user_log($spread_data['uid'],$yj_amount_90,$store_order_data['order_id'],3,$group_order['group_order_sn'],'推广获得金'.$yj_amount_90,$store_order_data['mer_id']);
1839
+                $this->bill_user_log($spread_data['uid'],$yj_amount_90,$store_order_data['order_id'],3,$group_order['group_order_sn'],'推广获得金'.$yj_amount_90,$store_order_data['mer_id']);
1840 1840
             }
1841 1841
 
1842 1842
         
@@ -1864,7 +1864,7 @@ public function getbig_samll_datas_copy($user_id) {
1864 1864
                 
1865 1865
                 Db::name('user')->where('uid',$merchant_data['uid'])->update(['brokerage_price'=>$yj_amount,'fugou'=>$fgj_amount]);
1866 1866
             //推广佣金
1867
-            $this->bill_user_log($merchant_data['uid'],round($pv * 0.35,2),$store_order_data['order_id'],3,$group_order['group_order_sn'],'推广获得金'.round($pv * 0.35,2),$store_order_data['mer_id']);
1867
+            $this->bill_user_log($merchant_data['uid'],round($pv * 0.35,2),$store_order_data['order_id'],3,$group_order['group_order_sn'],'推广获得金'.round($pv * 0.35,2),$store_order_data['mer_id']);
1868 1868
             }
1869 1869
 
1870 1870
         }