wip
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user