From e10d167aecb3a128c6ca43f905f11287581127f0 Mon Sep 17 00:00:00 2001 From: mzl Date: Thu, 31 Jul 2025 10:34:15 +0800 Subject: [PATCH] ts --- app/common/logic/AuthLogic.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {