diff --git a/app/Controller/v3/GoodsController.php b/app/Controller/v3/GoodsController.php index 5cbc08b..71b055c 100644 --- a/app/Controller/v3/GoodsController.php +++ b/app/Controller/v3/GoodsController.php @@ -106,7 +106,7 @@ class GoodsController extends BaseController $goods['third'] = null; } $first = $this->categoryService->getByParentId(0); - $secend = $this->categoryService->getByParentId($goods['category_id']); + $secend = $this->categoryService->getByParentId($goods['first']['id']); $third = $this->categoryService->getThird($goods['category_id']); $tags = $this->goodsService->getTags(); return $this->success([