更新查询详情
This commit is contained in:
parent
019ae88296
commit
3d18c9187d
@ -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('商品已下架');
|
||||
|
Loading…
x
Reference in New Issue
Block a user