调整商品标签值输入
This commit is contained in:
parent
d8172c31ab
commit
d0325962eb
@ -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('名称重复');
|
||||
|
Loading…
x
Reference in New Issue
Block a user