瀏覽代碼

自己的动态,不管是否审核通过

lizhen_gitee 3 月之前
父節點
當前提交
81a5042277
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      application/api/controller/Topicdongtai.php

+ 3 - 1
application/api/controller/Topicdongtai.php

@@ -182,7 +182,9 @@ class Topicdongtai extends Api
         }
         $where['dt.user_id'] = $user_id;
         $where['dt.status'] = 0;
-//        $where['dt.auit_status'] = 1;
+        if($user_id != $this->auth->id){
+            $where['dt.auit_status'] = 1;
+        }
         $orderby = 'dt.id desc';
 
         $list = Db::name('topic_dongtai')->alias('dt')