mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update Article.php
This commit is contained in:
parent
6afb70f630
commit
7f579f9b44
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user