This commit is contained in:
mzl
2025-07-31 10:34:15 +08:00
parent 9d81c23e8a
commit e10d167aec
+3 -1
View File
@@ -93,7 +93,7 @@ class AuthLogic
->orWhere('email', $email); ->orWhere('email', $email);
}) })
->first(); ->first();
$user->isLogin = true;
if (!$user) { if (!$user) {
// 获取编号 // 获取编号
$userSn = $this->getAvailableUserSn(); $userSn = $this->getAvailableUserSn();
@@ -133,6 +133,8 @@ class AuthLogic
} }
// 更新飞书信息 // 更新飞书信息
$user->update($updated); $user->update($updated);
// 是否登陆
$user->isLogin = true;
} }
return $user; return $user;
} catch (\Throwable $e) { } catch (\Throwable $e) {