|
@@ -19,6 +19,15 @@ class Userfollow extends Api
|
|
|
$user_id = $this->auth->id;
|
|
|
}
|
|
|
|
|
|
+ //如果不是我,并且开了隐私,直接返回空
|
|
|
+ if($user_id != $this->auth->id){
|
|
|
+ $yinsi = $this->user_power($user_id,'yinsi');
|
|
|
+ if($yinsi == 1){
|
|
|
+ $this->success(1,[]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //列表
|
|
|
$list = Db::name('user_follow')
|
|
|
->alias('follow')
|
|
|
->join('user','follow.follow_uid = user.id','LEFT')
|
|
@@ -52,6 +61,15 @@ class Userfollow extends Api
|
|
|
$user_id = $this->auth->id;
|
|
|
}
|
|
|
|
|
|
+ //如果不是我,并且开了隐私,直接返回空
|
|
|
+ if($user_id != $this->auth->id){
|
|
|
+ $yinsi = $this->user_power($user_id,'yinsi');
|
|
|
+ if($yinsi == 1){
|
|
|
+ $this->success(1,[]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //列表
|
|
|
$list = Db::name('user_follow')
|
|
|
->alias('follow')
|
|
|
->join('user','follow.uid = user.id','LEFT')
|