|
@@ -27,7 +27,7 @@ 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'];
|
|
|
+ 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'];
|
|
|
|
|
|
public function __construct($options = [])
|
|
|
{
|
|
@@ -603,6 +603,17 @@ class Auth
|
|
|
if (!empty($user['pre_avatar']) && $user['pre_avatar'] != $user['avatar']) {
|
|
|
$userinfo['avatar_status'] = 1;
|
|
|
}
|
|
|
+
|
|
|
+ //贡献等级
|
|
|
+ $charm_info = Db::name('user_config_charm')->where('level',$this->charm_level)->find();
|
|
|
+ $userinfo['charm_image'] = localpath_to_netpath($charm_info['image']);
|
|
|
+ $userinfo['charm_color'] = $charm_info['color'];
|
|
|
+
|
|
|
+ //财富等级
|
|
|
+ $wealth_info = Db::name('user_config_wealth')->where('level',$this->wealth_level)->find();
|
|
|
+ $userinfo['wealth_image'] = localpath_to_netpath($wealth_info['image']);
|
|
|
+ $userinfo['wealth_color'] = $wealth_info['color'];
|
|
|
+
|
|
|
//
|
|
|
return $userinfo;
|
|
|
}
|