调整但行
This commit is contained in:
@@ -182,10 +182,12 @@ function getArtilesByCates($cate_id, $take = 8)
|
||||
$cate_ids = Category::where('parent_id', $cate_id)
|
||||
->orWhere('id', $cate_id)
|
||||
->whereIn('type', [Category::TYPE_ARTICLE, Category::TYPE_SHOW])
|
||||
->get();
|
||||
->pluck('id')
|
||||
->toArray();
|
||||
|
||||
return Article::whereIn('category_id', $cate_ids)
|
||||
->latest()
|
||||
->take($take)
|
||||
->get();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user