diff --git a/app/controller/admin/store/ProductLabel.php b/app/controller/admin/store/ProductLabel.php index 7939a336..a994f927 100755 --- a/app/controller/admin/store/ProductLabel.php +++ b/app/controller/admin/store/ProductLabel.php @@ -41,7 +41,7 @@ class ProductLabel extends BaseController public function create(ProductLabelValidate $validate) { - $data = $this->request->params(['label_name', 'status', 'sort', 'info']); + $data = $this->request->params(['label_name', 'status', 'sort', 'info', 'value']); $validate->check($data); if (!$this->repository->check($data['label_name'], 0)) return app('json')->fail('名称重复'); @@ -56,7 +56,7 @@ class ProductLabel extends BaseController public function update($id, ProductLabelValidate $validate) { - $data = $this->request->params(['label_name', 'status', 'sort', 'info']); + $data = $this->request->params(['label_name', 'status', 'sort', 'info', 'value']); $validate->check($data); if (!$this->repository->check($data['label_name'], 0,$id)) return app('json')->fail('名称重复');