作者 lyh

gx

... ... @@ -95,8 +95,7 @@ class UpdateProductCategory extends Command
foreach ($cate_arr as $v){
$categoryModel = new Category();
$info = $categoryModel->read(['id'=>$v],['id']);
if($info !== false){
//有下级时,跳过
if($info === false){
continue;
}else{
//更新关联表
... ...