|
@@ -114,10 +114,11 @@ class Topicdongtai extends Api
|
|
|
|
|
|
$where = [
|
|
|
'dt.user_id'=>$uid,
|
|
|
- 'dt.auditstatus' => 1,
|
|
|
+
|
|
|
];
|
|
|
if($uid != $this->auth->id){
|
|
|
$where['dt.is_public'] = 1; //不是自己的,就只能看公开的。公开:1=公开,2=私密
|
|
|
+ $where['dt.auditstatus'] = 1; //不是自己的,就只能看审核通过的
|
|
|
}
|
|
|
|
|
|
$list = Db::name('topic_dongtai')->alias('dt')
|