|
@@ -152,7 +152,8 @@ class Product extends BaseController
|
|
|
// 获取参数
|
|
// 获取参数
|
|
|
$params = $this->request->params($this->repository::CREATE_PARAMS);
|
|
$params = $this->request->params($this->repository::CREATE_PARAMS);
|
|
|
$data = $this->repository->checkParams($params, $this->request->merId(), $id);
|
|
$data = $this->repository->checkParams($params, $this->request->merId(), $id);
|
|
|
- var_dump($data['is_gift']);die();
|
|
|
|
|
|
|
+ var_dump($params);
|
|
|
|
|
+ var_dump($data);die();
|
|
|
// 判断商品是否存在
|
|
// 判断商品是否存在
|
|
|
if (!$this->repository->merExists($this->request->merId(), $id))
|
|
if (!$this->repository->merExists($this->request->merId(), $id))
|
|
|
return app('json')->fail('数据不存在');
|
|
return app('json')->fail('数据不存在');
|