显示启用分类最多6个

This commit is contained in:
Edward Yang 2022-08-12 15:19:35 +08:00
parent a818c0c9f7
commit 2a3fbe2a1c
1 changed files with 2 additions and 0 deletions

View File

@ -41,7 +41,9 @@ class CategoryRepo
->from('categories as c')
->with(['description', 'children.description'])
->where('parent_id', 0)
->where('active', true)
->orderBy('position')
->limit(6)
->get();
$categoryList = CategoryDetail::collection($topCategories);