调整列表

This commit is contained in:
2021-02-04 10:57:43 +08:00
parent 0e70658aeb
commit e188a9a3f2
2 changed files with 9 additions and 1 deletions

View File

@@ -181,6 +181,7 @@ function getArtilesByCates($cate_id, $take = 8)
{
$cate_ids = Category::where('parent_id', $cate_id)
->orWhere('id', $cate_id)
->where('status', 1)
->whereIn('type', [Category::TYPE_ARTICLE, Category::TYPE_SHOW])
->pluck('id')
->toArray();