作者 lyh

gx

@@ -119,7 +119,7 @@ class DeleteProductCategory extends Command @@ -119,7 +119,7 @@ class DeleteProductCategory extends Command
119 } 119 }
120 } 120 }
121 //更新当前字段 121 //更新当前字段
122 - $productModel->edit(['category_id'=>json_encode($category_id_arr)],['id'=>$v['id']]); 122 + $productModel->edit(['category_id'=>','.json_encode($category_id_arr).','],['id'=>$v['id']]);
123 } 123 }
124 $page++; 124 $page++;
125 } 125 }