|
@@ -26,7 +26,7 @@ class Auth
|
|
|
//默认配置
|
|
|
protected $config = [];
|
|
|
protected $options = [];
|
|
|
- protected $allowFields = ['id', 'username', 'nickname', 'mobile', 'avatar', 'score'];
|
|
|
+ protected $allowFields = ['id', 'nickname', 'mobile', 'avatar', 'group_id'];
|
|
|
|
|
|
public function __construct($options = [])
|
|
|
{
|
|
@@ -373,6 +373,10 @@ class Auth
|
|
|
$allowFields = $this->getAllowFields();
|
|
|
$userinfo = array_intersect_key($data, array_flip($allowFields));
|
|
|
$userinfo = array_merge($userinfo, Token::get($this->_token));
|
|
|
+
|
|
|
+
|
|
|
+ $userinfo['avatar'] = localpath_to_netpath($userinfo['avatar']);
|
|
|
+
|
|
|
return $userinfo;
|
|
|
}
|
|
|
|