afa пре 5 месеци
родитељ
комит
32a6f6dd5b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      application/api/logic/CommonLogic.php

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

@@ -91,7 +91,7 @@ class CommonLogic
                   $teamCount = UserModel::where('parent_id', $parent_id)->where('team_level_id', $parent->team_level_id)->count() +1;
                   //组合套数
                   $groupCount = UserPledge::getPledgeCount($parent_id);
-                  if($teamCount < $config[$parent->team_level_id]['direct'] && $groupCount >= $config[$parent->team_level_id]['num']){
+                  if($teamCount < $config[$parent->team_level_id]['direct'] || $groupCount < $config[$parent->team_level_id]['num']){
                         $parent->team_level_id -=1;
                         $parent->save();
                   }