From d0325962eb694945a3afc0675d3b73d2a450307b Mon Sep 17 00:00:00 2001 From: luofei <604446095@qq.com> Date: Fri, 1 Mar 2024 15:39:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=95=86=E5=93=81=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E5=80=BC=E8=BE=93=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/admin/store/ProductLabel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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('名称重复');