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('编辑成功');