From cdc8da3aecb731369eba803ba2f290567e9f3e54 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Sat, 7 Oct 2023 17:50:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/merchant/store/product/Product.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controller/merchant/store/product/Product.php b/app/controller/merchant/store/product/Product.php index 115699b5..e2701fa5 100644 --- a/app/controller/merchant/store/product/Product.php +++ b/app/controller/merchant/store/product/Product.php @@ -280,8 +280,8 @@ class Product extends BaseController 'spec_type' ]; $data = $this->request->params($params); - $count = app()->make(StoreCategoryRepository::class)->getWhereCount(['store_category_id' => $data['mer_cate_id'],'is_show' => 1,'mer_id' => $this->request->merId()]); - if (!$count) throw new ValidateException('商户分类不存在或不可用'); + // $count = app()->make(StoreCategoryRepository::class)->getWhereCount(['store_category_id' => $data['mer_cate_id'],'is_show' => 1,'mer_id' => $this->request->merId()]); + // if (!$count) throw new ValidateException('商户分类不存在或不可用'); $data['status'] = 1; $this->repository->freeTrial($id, $data,$this->request->merId()); return app('json')->success('编辑成功');