作者 lyh

gx

@@ -105,6 +105,7 @@ class DeleteProductCategory extends Command @@ -105,6 +105,7 @@ class DeleteProductCategory extends Command
105 foreach ($productList as $v){ 105 foreach ($productList as $v){
106 $categoryRelatedModel = new CategoryRelated(); 106 $categoryRelatedModel = new CategoryRelated();
107 if(empty($v['category_id'])){ 107 if(empty($v['category_id'])){
  108 + echo json_encode($v);
108 $categoryRelatedModel->del(['product_id'=>$v['id']]); 109 $categoryRelatedModel->del(['product_id'=>$v['id']]);
109 continue; 110 continue;
110 } 111 }