Browse Source

获取用户主页资料,分两个接口

lizhen_gitee 1 year ago
parent
commit
754ec4f10f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      application/api/controller/Usercenter.php

+ 1 - 0
application/api/controller/Usercenter.php

@@ -295,6 +295,7 @@ class Usercenter extends Api
 
         //是否关注
         $userinfo['is_follow'] = $this->is_follow($this->auth->id,$uid);
+        $userinfo['is_vip'] = $this->is_vip($this->auth->id);
 
         //是否拉黑
         $is_black = Db::name('user_black')->where(['uid'=>$this->auth->id,'black_uid'=>$uid])->find();