更新
This commit is contained in:
parent
50736e3778
commit
cdc8da3aec
@ -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('编辑成功');
|
||||
|
Loading…
x
Reference in New Issue
Block a user