diff --git a/app/Service/v3/Implementations/GoodsService.php b/app/Service/v3/Implementations/GoodsService.php index 56ff073..bf240f3 100644 --- a/app/Service/v3/Implementations/GoodsService.php +++ b/app/Service/v3/Implementations/GoodsService.php @@ -67,9 +67,7 @@ class GoodsService implements GoodsServiceInterface public function detail($goodsId) { - $res = Goods::query()->with(['store' => function($query){ - $query->with('market'); - }])->where('id',$goodsId)->first(); + $res = Goods::query()->with('store')->where('id',$goodsId)->first(); return $res; } } \ No newline at end of file