|
|
@@ -500,7 +500,7 @@ class UserLogic
|
|
|
{
|
|
|
$newUserPathArr[] = $pid;
|
|
|
|
|
|
- $this->updatePidAndPathByPath($prefixPath);
|
|
|
+ $this->updatePidAndPathByPath($id, $prefixPath);
|
|
|
|
|
|
$parentUser = User::getUserById($pid);
|
|
|
$newUserPathArr = explode(',', $parentUser['path']);
|
|
|
@@ -537,13 +537,15 @@ class UserLogic
|
|
|
return [false, null];
|
|
|
}
|
|
|
|
|
|
- private function updatePidAndPathByPath($prefixPath)
|
|
|
+ private function updatePidAndPathByPath($uid, $prefixPath)
|
|
|
{
|
|
|
$newTopUid = $prefixPath[count($prefixPath) - 1];
|
|
|
|
|
|
// 从阶段处更新,分支出来作为第一层
|
|
|
User::modifyUserPidAndPath($newTopUid, 0, '');
|
|
|
|
|
|
+ User::modifyUserPidAndPathByPid($uid, 0, '');
|
|
|
+
|
|
|
$newUserPathArr = [];
|
|
|
return $this->iteraMidifyPathByPid($newUserPathArr, $newTopUid);
|
|
|
|