diff --git a/app/common/logic/AuthLogic.php b/app/common/logic/AuthLogic.php index f0261ed..b2a74fc 100644 --- a/app/common/logic/AuthLogic.php +++ b/app/common/logic/AuthLogic.php @@ -93,7 +93,7 @@ class AuthLogic ->orWhere('email', $email); }) ->first(); - $user->isLogin = true; + if (!$user) { // 获取编号 $userSn = $this->getAvailableUserSn(); @@ -133,6 +133,8 @@ class AuthLogic } // 更新飞书信息 $user->update($updated); + // 是否登陆 + $user->isLogin = true; } return $user; } catch (\Throwable $e) {