Kaynağa Gözat

企业信息

kphcdr 1 yıl önce
ebeveyn
işleme
fec84aba47
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      app/Modules/Admin/Services/GoodsService.php

+ 3 - 0
app/Modules/Admin/Services/GoodsService.php

@@ -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'],
                 ]);
             }