|
@@ -26,7 +26,7 @@ class Auth
|
|
|
//默认配置
|
|
|
protected $config = [];
|
|
|
protected $options = [];
|
|
|
- protected $allowFields = ['id', 'username', 'nickname', 'mobile', 'avatar'];
|
|
|
+ protected $allowFields = ['id', 'username', 'nickname', 'mobile', 'avatar', 'group_id'];
|
|
|
|
|
|
public function __construct($options = [])
|
|
|
{
|
|
@@ -390,7 +390,7 @@ class Auth
|
|
|
$userinfo = array_merge($userinfo, Token::get($this->_token));
|
|
|
|
|
|
$userinfo['avatar'] = localpath_to_netpath($userinfo['avatar']);
|
|
|
-
|
|
|
+ $userinfo['chat_id'] = im_prefix($userinfo['id']);
|
|
|
return $userinfo;
|
|
|
}
|
|
|
public function getUserinfo()
|
|
@@ -401,7 +401,7 @@ class Auth
|
|
|
$userinfo = array_merge($userinfo, Token::get($this->_token));
|
|
|
|
|
|
$userinfo['avatar'] = localpath_to_netpath($userinfo['avatar']);
|
|
|
-
|
|
|
+ $userinfo['chat_id'] = im_prefix($userinfo['id']);
|
|
|
return $userinfo;
|
|
|
}
|
|
|
|