This commit is contained in:
mkm 2023-10-07 17:50:57 +08:00
parent 50736e3778
commit cdc8da3aec

View File

@ -280,8 +280,8 @@ class Product extends BaseController
'spec_type' 'spec_type'
]; ];
$data = $this->request->params($params); $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()]); // $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('商户分类不存在或不可用'); // if (!$count) throw new ValidateException('商户分类不存在或不可用');
$data['status'] = 1; $data['status'] = 1;
$this->repository->freeTrial($id, $data,$this->request->merId()); $this->repository->freeTrial($id, $data,$this->request->merId());
return app('json')->success('编辑成功'); return app('json')->success('编辑成功');