@@ -86,6 +86,9 @@ class GoodsService extends BaseService
GoodsCategoryMap::updateOrCreate([
"goods_id" => $goods->id,
"category_id" => $c['id'],
+ ], [
+ "goods_id" => $goods->id,
+ "category_id" => $c['id'],
'is_public' => $c['is_public'],
]);
}