fix: 文章模块bug修复

This commit is contained in:
2025-06-07 14:24:10 +08:00
parent 88c1350498
commit 797a76bb90
3 changed files with 3 additions and 2 deletions

View File

@@ -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'],