Parcourir la source

fix(product): 启用商品详情内容存储功能

- 移除 store_product_content 表写入代码的注释
- 恢复商品详情内容的数据库插入功能
- 确保商品描述能够正确保存到数据库中
shichen il y a 3 mois
Parent
commit
35becc2d77
1 fichiers modifiés avec 5 ajouts et 5 suppressions
  1. 5 5
      app/services/ThirdParty/AlibabaAgent/ProductService.php

+ 5 - 5
app/services/ThirdParty/AlibabaAgent/ProductService.php

@@ -456,11 +456,11 @@ class ProductService extends AlibabaAgentBaseService
456 456
 
457 457
             // 8. 写入 store_product_content 表(商品详情)
458 458
             $contentHtml = $description;
459
-            // Db::name('store_product_content')->insert([
460
-            //     'product_id' => $productId,
461
-            //     'content'    => $contentHtml,
462
-            //     'type'       => 0,
463
-            // ]);
459
+            Db::name('store_product_content')->insert([
460
+                'product_id' => $productId,
461
+                'content'    => $contentHtml,
462
+                'type'       => 0,
463
+            ]);
464 464
 
465 465
             // 9. 写入 store_product_attr 和 store_product_attr_value
466 466
             $this->insertStoreSkus($productId, $skuList, $merId);