refactor: 修改产品分类父级不为自身或子分类
This commit is contained in:
@@ -82,7 +82,7 @@ class ProductCategory
|
||||
$data = array_merge($post, ['language_id' => request()->lang_id]);
|
||||
|
||||
$validate = new ProductCategoryValidate;
|
||||
if (!$validate->check($data)) {
|
||||
if (!$validate->scene('add')->check($data)) {
|
||||
return error($validate->getError());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user