调整顺寻

This commit is contained in:
2021-11-30 10:17:03 +08:00
parent d2643c8f7c
commit 97a6d9a182
2 changed files with 2 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ function getCateChild($categoryId, $take = '')
{
return Category::where('status', 1)
->where('parent_id', $categoryId)
->orderBy('order', 'desc')
->orderBy('order', 'asc')
->when($take, function ($q) use ($take) {
$q->take($take);
})