正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
| @@ -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 | } |
-
请 注册 或 登录 后发表评论