diff --git a/app/controller/merchant/store/product/ProductLabel.php b/app/controller/merchant/store/product/ProductLabel.php index 4aa28e59..c1a5bf66 100644 --- a/app/controller/merchant/store/product/ProductLabel.php +++ b/app/controller/merchant/store/product/ProductLabel.php @@ -62,7 +62,8 @@ class ProductLabel extends BaseController $data = $this->checkParams($validate); if (!$this->repository->check($data['label_name'], $this->request->merId(),$id)) return app('json')->fail('名称重复'); - $getOne = $this->repository->getWhere(['product_label_id' => $id,'mer_id' => $this->request->merId()]); + //'mer_id' => $this->request->merId() + $getOne = $this->repository->getWhere(['product_label_id' => $id]); if (!$getOne) return app('json')->fail('数据不存在'); $this->repository->update($id, $data); return app('json')->success('编辑成功');