|
@@ -284,10 +284,10 @@ class LoginController extends AbstractController
|
|
'uid' => isset($checkUserInfo['data']['id']) && $checkUserInfo['data']['id']?? 0, // 如果使用单点登录,必须存在配置文件中的sso_key的值,一般设置为用户的id
|
|
'uid' => isset($checkUserInfo['data']['id']) && $checkUserInfo['data']['id']?? 0, // 如果使用单点登录,必须存在配置文件中的sso_key的值,一般设置为用户的id
|
|
'user_name' => $response['phone_info']['phoneNumber'],
|
|
'user_name' => $response['phone_info']['phoneNumber'],
|
|
'mobile' => $checkUserInfo['data']['mobile'] ?? '',
|
|
'mobile' => $checkUserInfo['data']['mobile'] ?? '',
|
|
- 'email' => $checkUserInfo['data']['email'],
|
|
|
|
|
|
+ 'email' => $checkUserInfo['data']['email'] ?? '',
|
|
// 'rong_token' => $userInfos['data']['rong_token'],
|
|
// 'rong_token' => $userInfos['data']['rong_token'],
|
|
- 'level_id' => $checkUserInfo['data']['level_id'],
|
|
|
|
- 'type_id' => $checkUserInfo['data']['type_id'],
|
|
|
|
|
|
+ 'level_id' => $checkUserInfo['data']['level_id'] ?? '',
|
|
|
|
+ 'type_id' => $checkUserInfo['data']['type_id'] ?? '',
|
|
];
|
|
];
|
|
// 使用默认场景登录
|
|
// 使用默认场景登录
|
|
$token = $jwt->getToken('default', $userData);
|
|
$token = $jwt->getToken('default', $userData);
|