Update micFieldMapping.js via upload script - 2026-09-21 01:30:49
This commit is contained in:
parent
ff9a078cd9
commit
6a440c996f
|
|
@ -213,12 +213,12 @@ const CATEGORY_FIELD_MAP = {
|
|||
|
||||
/**
|
||||
* 注意:CRM产品数据model里没有独立的"型号"字段——`name` 本身既是型号也是产品
|
||||
* 标识(App.jsx里"按型号名称去重合并"用的就是这个字段),所以这里 model 和
|
||||
* title 都用 product.name。如果你想让MIC上的标题更像营销标题(比如带上品牌名/
|
||||
* 品类描述),改这里的 title 拼接方式即可,不影响 model 字段。
|
||||
* 标识(App.jsx里"按型号名称去重合并"用的就是这个字段),所以这里 model 就是
|
||||
* product.name。MIC上的"产品名称"不再用这个当标题——改成micUploadRoutes.js里
|
||||
* 单独调DeepSeek按官方规则生成(型号只是标题生成时的一个输入项)。
|
||||
*
|
||||
* @param {object} product CRM产品对象(crm:products 里的一条)
|
||||
* @returns {{ title: string, model: string, attrList: {name:string, value:string}[], warnings: string[] }}
|
||||
* @returns {{ model: string, attrList: {name:string, value:string}[], warnings: string[] }}
|
||||
*/
|
||||
function buildAttributeList(product) {
|
||||
const warnings = [];
|
||||
|
|
@ -265,10 +265,8 @@ function buildAttributeList(product) {
|
|||
warnings.push(`品类 "${product.type}" 还没配置专属字段表,本次只上传了 extraSpecs 里的参数`);
|
||||
}
|
||||
|
||||
const modelAndTitle = sanitizeValue(product.name);
|
||||
return {
|
||||
title: modelAndTitle,
|
||||
model: modelAndTitle,
|
||||
model: sanitizeValue(product.name),
|
||||
attrList,
|
||||
warnings,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue