更新查询详情

This commit is contained in:
yaooo 2023-09-28 16:02:41 +08:00
parent 019ae88296
commit 3d18c9187d

View File

@ -66,7 +66,7 @@ class StoreProduct extends BaseController
public function detail($id)
{
$param = $this->request->params(['type', ['product_type', 0]]);
$data = $this->repository->detail($id, $this->userInfo,$param['product_type']);
$data = $this->repository->detail((int)$id, $this->userInfo, $param['product_type']);
if (!$data){
app()->make(SpuRepository::class)->changeStatus($id,0);
return app('json')->fail('商品已下架');