fix(商品导出): 使用中台商品新字段

This commit is contained in:
吴昊天 2026-09-23 19:22:38 +08:00
parent dfb8c5132b
commit 874847fcaa
2 changed files with 6 additions and 6 deletions

View File

@ -298,7 +298,7 @@ class ExportServices extends BaseService
}
$one_data = [
'id' => intval($product_id),
'store_name' => $productInfo['store_name'],
'store_name' => $productInfo['name'],
'product_type' => $productTypeNameMap[$productInfo['product_type']] ?? '',
'cate_name_one' => $cate_name_one,
'cate_name_two' => $cate_name_two,
@ -315,9 +315,9 @@ class ExportServices extends BaseService
'volume' => floatval($value['volume'] ?? 0),
'bar_code' => $value['bar_code'] ?? '',
'bar_code_number' => $value['bar_code_number'] ?? '',
'store_info' => $productInfo['store_info'] ?? '',
'store_info' => $productInfo['intro'],
'keyword' => $productInfo['keyword'] ?? '',
'command_word' => $productInfo['command_word'] ?? '',
'command_word' => '',
'give_integral' => $productInfo['give_integral'] ?? 0,
];
$export[] = $one_data;

View File

@ -3467,7 +3467,7 @@ class CenterProductServices extends BaseService
}
$one_data = [
'id' => intval($product_id),
'store_name' => $productInfo['store_name'],
'store_name' => $productInfo['name'],
'product_type' => $productInfo['product_type'] ?? 'normal',
'type_name' => $this->getProductTypeName($productInfo['product_type'] ?? 'normal'),
'cate_name_one' => reset($cateName)['one'] ?? '',
@ -3493,9 +3493,9 @@ class CenterProductServices extends BaseService
'weight' => intval($value['weight'] ?? 0),
'bar_code' => $value['bar_code'] ?? '',
'bar_code_number' => $value['bar_code_number'] ?? '',
'store_info' => $productInfo['store_info'],
'store_info' => $productInfo['intro'],
'keyword' => $productInfo['keyword'],
'command_word' => $productInfo['command_word'],
'command_word' => '',
'give_integral' => $productInfo['give_integral'],
];
$export[] = $one_data;