igb 1 неделя назад
Родитель
Сommit
7cf2e99ecf
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Distributor/Forms/ImportProduct.php

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

@@ -45,7 +45,7 @@ class ImportProduct extends Form
                     'order' => 0, // 假设 $baseProduct 也有 order 字段
                     'order' => 0, // 假设 $baseProduct 也有 order 字段
                     'enabled' => 1, // 假设 $baseProduct 也有 enabled 字段
                     'enabled' => 1, // 假设 $baseProduct 也有 enabled 字段
                     'content' => $content, // 假设 $baseProduct 也有 content 字段
                     'content' => $content, // 假设 $baseProduct 也有 content 字段
-                    'parameters' => $item['parameters'], // 假设 $baseProduct 也有 parameters 字段
+                    'parameters' => is_string($item['parameters']) ? json_decode($item['parameters'], true) : $item['parameters'],
                     'seo_title'=> $title,
                     'seo_title'=> $title,
                     'seo_keywords' => '',
                     'seo_keywords' => '',
                     'seo_description' => '',
                     'seo_description' => '',