diff --git a/app/data/controller/api/Article.php b/app/data/controller/api/Article.php index 670f2321e..44594fb11 100644 --- a/app/data/controller/api/Article.php +++ b/app/data/controller/api/Article.php @@ -45,7 +45,7 @@ class Article extends Controller } $query = $this->_query('DataArticleContent')->equal('type,id')->like('title,tags'); $query->where(['deleted' => 0, 'status' => 1])->withoutField('sort,status,deleted'); - $result = $query->order('sort desc,id desc')->page(false, false); + $result = $query->order('sort desc,id desc')->page(true, false, false, 15); foreach ($result['list'] as &$vo) $vo['tags'] = trim($vo['tags'], ','); $this->success('获取文章内容列表', $result); }