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