|
@@ -27,7 +27,9 @@ class Auth
|
|
|
//默认配置
|
|
|
protected $config = [];
|
|
|
protected $options = [];
|
|
|
- protected $allowFields = ['id', 'u_id', 'username', 'nickname', 'mobile', 'pre_userid', 'has_info', 'is_auth', 'is_anchor', 'is_guild', 'guild_id', 'avatar', 'empirical', 'image', 'money', 'level', 'gender', 'age', 'jewel','ipaddress','wealth_level','charm_level'];
|
|
|
+ protected $allowFields = ['id', 'u_id', 'username', 'nickname', 'mobile', 'pre_userid', 'has_info', 'is_auth',
|
|
|
+ 'is_anchor', 'is_guild', 'guild_id', 'avatar', 'empirical', 'image', 'level', 'gender', 'age',
|
|
|
+ 'ipaddress','wealth_level','charm_level'];
|
|
|
|
|
|
public function __construct($options = [])
|
|
|
{
|
|
@@ -488,6 +490,12 @@ class Auth
|
|
|
$fansfollows["follows"] = $follows ? $follows : 0;
|
|
|
$allowFields = $this->getAllowFields();
|
|
|
$userinfo = array_intersect_key($data, array_flip($allowFields));
|
|
|
+
|
|
|
+ //用户钱包
|
|
|
+ $userwallet = Db::name('user_wallet')->where('user_id',$this->_user->id)->find();
|
|
|
+ $userinfo['money'] = $userwallet['money'];
|
|
|
+ $userinfo['jewel'] = $userwallet['jewel'];
|
|
|
+
|
|
|
$userinfo = array_merge($userinfo, Token::get($this->_token));
|
|
|
$userinfo = array_merge($userinfo, $fansfollows);
|
|
|
// 获取贵族信息
|