|
|
@@ -68,7 +68,7 @@ class CommonLogic
|
|
|
if($team_level_id == 1 && ($groupCount == 0 || $address_level < $config[0]['direct'])){
|
|
|
$result = true;
|
|
|
$team_level_id = 0;
|
|
|
- self::setIsUpLevelParent($parent_id, $config);
|
|
|
+ self::setIsOuLevelParent($parent_id, $config);
|
|
|
}
|
|
|
|
|
|
if($team_level_id > 1){
|
|
|
@@ -77,7 +77,7 @@ class CommonLogic
|
|
|
if($teamCount < $config[$team_level_id]['direct'] && $groupCount < $config[$team_level_id]['num']){
|
|
|
$result = true;
|
|
|
$team_level_id -= 1;
|
|
|
- self::setIsUpLevelParent($parent_id, $config);
|
|
|
+ self::setIsOuLevelParent($parent_id, $config);
|
|
|
}
|
|
|
}
|
|
|
return $result? UserModel::where('id', $user_id)->update(['team_level_id'=> $team_level_id]): false;
|