|
...
|
...
|
@@ -121,7 +121,7 @@ class CategoryLogic extends BaseLogic |
|
|
|
* @time :2023/8/21 17:43
|
|
|
|
*/
|
|
|
|
public function handleEditParam(&$param){
|
|
|
|
$category_ids = Category::getChildIdsArr($param['id']);
|
|
|
|
$category_ids = Category::getChildIdsArr($param['id'] ?? 0);
|
|
|
|
if(in_array($param['pid'], $category_ids)){
|
|
|
|
$this->fail('上级分类不能是本分类或子分类');
|
|
|
|
}
|
...
|
...
|
|