fix: 文章模块bug修复
This commit is contained in:
@@ -37,6 +37,7 @@ class Article extends Common
|
||||
])
|
||||
->type('image')
|
||||
->visible(['id', 'title', 'image', 'link'])
|
||||
->enabled()
|
||||
->find();
|
||||
View::assign('banner', $banner);
|
||||
|
||||
@@ -64,7 +65,6 @@ class Article extends Common
|
||||
])
|
||||
->withSearch(['title'], ['title' => $param['keywords']??null])
|
||||
->category($param['cid']??$categorys[0]['id'])
|
||||
->where('release_time', '<=', date('Y-m-d H:i:s'))
|
||||
->order(['sort' => 'asc', 'release_time' => 'desc', 'id' => 'desc'])
|
||||
->paginate([
|
||||
'list_rows' => $param['size'],
|
||||
|
||||
Reference in New Issue
Block a user