Jelajahi Sumber

升级降级

afa 5 bulan lalu
induk
melakukan
da6b0dc231
1 mengubah file dengan 3 tambahan dan 1 penghapusan
  1. 3 1
      application/api/logic/CommonLogic.php

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

@@ -36,7 +36,9 @@ class CommonLogic
                   if($team_level_id == 1 && ($groupCount == 0 || $address_level < $config[0]['direct'])){
                         $result = true;
                         $team_level_id = 0;
-                  }else{
+                  }
+                  //大于1
+                  if($team_level_id > 1){
                         if($teamCount >= $config[$team_level_id]['direct'] && $groupCount >= $config[$team_level_id]['num']){
                               $result = true;
                               $team_level_id += 1; //+1