|
@@ -63,6 +63,7 @@ class Auth
|
|
'hometown_cityid',
|
|
'hometown_cityid',
|
|
'hide_is_finishinfo',
|
|
'hide_is_finishinfo',
|
|
'level',
|
|
'level',
|
|
|
|
+ 'wechat_openid',
|
|
];
|
|
];
|
|
|
|
|
|
public function __construct($options = [])
|
|
public function __construct($options = [])
|
|
@@ -502,6 +503,9 @@ class Auth
|
|
$userinfo['unlock_like_me'] = config('site.unlock_like_me');
|
|
$userinfo['unlock_like_me'] = config('site.unlock_like_me');
|
|
|
|
|
|
$userinfo['unread_message_num'] = Db::name('message')->where(['user_id'=>$this->id,'status'=>0])->count('id');
|
|
$userinfo['unread_message_num'] = Db::name('message')->where(['user_id'=>$this->id,'status'=>0])->count('id');
|
|
|
|
+
|
|
|
|
+ $userinfo['is_openid'] = !empty($userinfo['wechat_openid']) ? 1 : 0;
|
|
|
|
+ unset($userinfo['wechat_openid']);
|
|
|
|
|
|
|
|
|
|
return $userinfo;
|
|
return $userinfo;
|