diff --git a/app/Service/v3/Implementations/CategoryService.php b/app/Service/v3/Implementations/CategoryService.php index 9738b01..911c59c 100644 --- a/app/Service/v3/Implementations/CategoryService.php +++ b/app/Service/v3/Implementations/CategoryService.php @@ -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();