This commit is contained in:
2026-08-05 14:05:08 +08:00
parent 9ffc9687d0
commit e831ce810b
8 changed files with 39 additions and 37 deletions

View File

@@ -29,13 +29,14 @@ class AuthService
$userInfo = [
'id' => $user['id'], // 用户ID
'id' => $user['id'], // 用户ID
'company_id' => $user['company_id'], // 所属公司ID
'company_name' => $user['company']['company_name'], // 所属公司名称
'username' => $user['username'],
'role' => $user['role'],
'username' => $user['username'],
'role' => $user['role'],
];
Session::set('user_info', $user);
Session::set('user_info', $userInfo);
return $userInfo;
}