浏览代码

上级降低级

afa 5 月之前
父节点
当前提交
c8345a1454
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      application/api/logic/CommonLogic.php

+ 1 - 1
application/api/logic/CommonLogic.php

@@ -51,7 +51,7 @@ class CommonLogic
             foreach ($pathId as $item) 
             {
                   $parent = $userModel::where('id', $item)->find();
-                  if($parent->team_level_id > 0){
+                  if($parent->team_level_id > 0 && $parent->team_level_id < 5){
                         //推广人数
                         $teamCount = $userModel::where('parent_id', $item)->where('team_level_id', '>=',$parent->team_level_id)->count() +1;
                         //组合套数