瀏覽代碼

三方订单佣金发错问题

hefei 1 年之前
父節點
當前提交
de86eb7649
共有 1 個文件被更改,包括 31 次插入30 次删除
  1. 31 30
      app/common/repositories/store/order/StoreOrderRepository.php

+ 31 - 30
app/common/repositories/store/order/StoreOrderRepository.php

@@ -3807,36 +3807,37 @@ class StoreOrderRepository extends BaseRepository
3807 3807
 
3808 3808
 
3809 3809
             //奖励推广佣金添加
3810
-            $yongjinbili = 0;//奖励佣金比例
3811
-            log::info("推荐人信息");
3812
-            //普通用户
3813
-            if ($sprerdUser["user_group"] == 1) {
3814
-                $yongjinbili = 5;
3815
-            }
3816
-            //业务员
3817
-            if ($sprerdUser["user_group"] == 2) {
3818
-                $yongjinbili = 7;
3819
-            }
3820
-            //业务经理
3821
-            if ($sprerdUser["user_group"] == 3) {
3822
-                $yongjinbili = 9;
3823
-            }
3824
-            //初级合伙人
3825
-            if ($sprerdUser["user_group"] == 4) {
3826
-                $yongjinbili = 11;
3827
-            }
3828
-            //中级合伙人
3829
-            if ($sprerdUser["user_group"] == 5) {
3830
-                $yongjinbili = 13;
3831
-            }
3832
-            //高级合伙人
3833
-            if ($sprerdUser["user_group"] == 6) {
3834
-                $yongjinbili = 15;
3835
-            }
3836
-            //懂事
3837
-            if ($sprerdUser["user_group"] == 7) {
3838
-                $yongjinbili = 17;
3839
-            }
3810
+//            $yongjinbili = 0;//奖励佣金比例
3811
+//            log::info("推荐人信息");
3812
+//            //普通用户
3813
+//            if ($sprerdUser["user_group"] == 1) {
3814
+//                $yongjinbili = 5;
3815
+//            }
3816
+//            //业务员
3817
+//            if ($sprerdUser["user_group"] == 2) {
3818
+//                $yongjinbili = 7;
3819
+//            }
3820
+//            //业务经理
3821
+//            if ($sprerdUser["user_group"] == 3) {
3822
+//                $yongjinbili = 9;
3823
+//            }
3824
+//            //初级合伙人
3825
+//            if ($sprerdUser["user_group"] == 4) {
3826
+//                $yongjinbili = 11;
3827
+//            }
3828
+//            //中级合伙人
3829
+//            if ($sprerdUser["user_group"] == 5) {
3830
+//                $yongjinbili = 13;
3831
+//            }
3832
+//            //高级合伙人
3833
+//            if ($sprerdUser["user_group"] == 6) {
3834
+//                $yongjinbili = 15;
3835
+//            }
3836
+//            //懂事
3837
+//            if ($sprerdUser["user_group"] == 7) {
3838
+//                $yongjinbili = 17;
3839
+//            }
3840
+            $yongjinbili = $this->getUserGroupRate($sprerdUser["user_group"]);
3840 3841
 
3841 3842
             //计算出佣金
3842 3843
             $yongjin = $pvfee * $yongjinbili / 100;