浏览代码

feat: import product update

(cherry picked from commit 0fbc9e478539999000108dafef332114b1882361)
igb 1 周之前
父节点
当前提交
47ffc6cff4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Distributor/Forms/ImportProduct.php

+ 1 - 1
app/Distributor/Forms/ImportProduct.php

@@ -34,7 +34,7 @@ class ImportProduct extends Form
             }
 
             foreach ($albumResult['data'] as $item) {
-                $title = isset($item['title']) ? $item['title'] : $item['model'];
+                $title = isset($item['title_en']) ? $item['title_en'] : $item['model'];
                 $content = empty($item['text_detail']) ? $this->changeToimagesHTML($item['en_detail']) : $item['text_detail'];
                 // 创建新的 DistProduct 记录
                 $distProduct = DistProduct::create([