diff --git a/app/Service/v3/Implementations/GoodsService.php b/app/Service/v3/Implementations/GoodsService.php index 27aae25..da6626a 100644 --- a/app/Service/v3/Implementations/GoodsService.php +++ b/app/Service/v3/Implementations/GoodsService.php @@ -86,7 +86,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->withoutGlobalScope('normal'); + }])->where('id',$goodsId)->first(); return $res; }