|
|
|
@ -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; |
|
|
|
} |
|
|
|
} |