Преглед на файлове

feat: import product update

igb преди 1 седмица
родител
ревизия
0fbc9e4785
променени са 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([