소스 검색

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([