hrjy 3 years ago
parent
commit
0bee1287c4
1 changed files with 18 additions and 17 deletions
  1. 18 17
      app/models/user/User.php

+ 18 - 17
app/models/user/User.php

@@ -921,34 +921,35 @@ class User extends BaseModel
                                         $v1++;
                                     }
                                 }
-                            }elseif ($details['level'] == 2){
-                                if ($v3 == 0){
+                            }elseif ($details['level'] == 2) {
+                                if ($v3 == 0) {
                                     // 没有发放合伙人的奖励
                                     if ($v1 == 0 and $v2 == 0) { // 没有发放区代和市代的奖励的奖励
                                         $jl = $price * $tow;// 市代团队奖励
                                         $v2++;
-                                    }elseif ($v1 > 0 and $v2 == 0){// 发放区代奖励,没有发放市代的奖励
+                                    } elseif ($v1 > 0 and $v2 == 0) {// 发放区代奖励,没有发放市代的奖励
                                         $jl = $price * ($tow - $one); // 市代团队奖励
                                         $v2++;
                                     }
 
                                 }
 
-                            }elseif ($details['level'] == 3){
-                                if ($v1 == 0 and $v2 == 0 and $v3 == 0) { // 没有发放区代和市代,合伙人的奖励的奖励
-                                    $jl = $price * $three;  // 合伙人团队奖励
-                                    $v3++;
-                                }elseif ($v1 > 0 and $v2 == 0 and $v3 == 0){// 发放区代奖励,没有发放市代,合伙人的奖励
-                                    $jl = $price * ($three - $one);  // 合伙人团队奖励
-                                    $v3++;
-                                }elseif ($v1 == 0 and $v2 > 0 and $v3 == 0){// 没有发放区代奖励,发放市代的奖励,没有发放合伙人的奖励
-                                    $jl = ($price * ($three - $tow));  // 合伙人团队奖励
-                                    $v3++;
-                                }elseif ($v1 > 0 and $v2 > 0 and $v3 == 0){// 发放区代奖励,发放市代的奖励,发放合伙人的奖励
-                                    $jl = ($price * ($three - $tow));  // 合伙人团队奖励
-                                    $v3++;
-                                }
                             }
+//                            }elseif ($details['level'] == 3){
+//                                if ($v1 == 0 and $v2 == 0 and $v3 == 0) { // 没有发放区代和市代,合伙人的奖励的奖励
+//                                    $jl = $price * $three;  // 合伙人团队奖励
+//                                    $v3++;
+//                                }elseif ($v1 > 0 and $v2 == 0 and $v3 == 0){// 发放区代奖励,没有发放市代,合伙人的奖励
+//                                    $jl = $price * ($three - $one);  // 合伙人团队奖励
+//                                    $v3++;
+//                                }elseif ($v1 == 0 and $v2 > 0 and $v3 == 0){// 没有发放区代奖励,发放市代的奖励,没有发放合伙人的奖励
+//                                    $jl = ($price * ($three - $tow));  // 合伙人团队奖励
+//                                    $v3++;
+//                                }elseif ($v1 > 0 and $v2 > 0 and $v3 == 0){// 发放区代奖励,发放市代的奖励,发放合伙人的奖励
+//                                    $jl = ($price * ($three - $tow));  // 合伙人团队奖励
+//                                    $v3++;
+//                                }
+//                            }
                             if ($jl > 0){
                                 $brokerage_price = $jl * 0.95;// 到账佣金
                                 $integral = $jl * 0.05;// 到账积分