|
|
|
@ -43,7 +43,7 @@ class CategoryService implements CategoryServiceInterface |
|
|
|
->get()->toArray(); |
|
|
|
|
|
|
|
return Category::query() |
|
|
|
->whereIn('id', array_column($goodsTypeIds, 'category_id')) |
|
|
|
->whereIn('id', array_values(array_column($goodsTypeIds, 'category_id'))) |
|
|
|
->orderBy('sort', 'DESC') |
|
|
|
->orderBy('id', 'DESC') |
|
|
|
->get()->toArray(); |
|
|
|
|