Browse Source

商品详情增加市场

master
Lemon 6 years ago
parent
commit
a81510d29a
  1. 4
      app/Service/v3/Implementations/GoodsService.php

4
app/Service/v3/Implementations/GoodsService.php

@ -67,7 +67,9 @@ class GoodsService implements GoodsServiceInterface
public function detail($goodsId)
{
$res = Goods::query()->with('store')->where('id',$goodsId)->first();
$res = Goods::query()->with(['store' => function($query){
$query->with('market');
}])->where('id',$goodsId)->first();
return $res;
}
}
Loading…
Cancel
Save