diff --git a/src/utils/jingdong-product-title.ts b/src/utils/jingdong-product-title.ts index 63c3a12..3d30b01 100644 --- a/src/utils/jingdong-product-title.ts +++ b/src/utils/jingdong-product-title.ts @@ -92,6 +92,7 @@ function textOf(...values: unknown[]) { function collectVariantName(orderStat: Record | null | undefined) { if (!orderStat) return '' return [ + orderStat.sub_cate_name, orderStat.shape_name, orderStat.kind_name, orderStat.mounts_name, @@ -109,7 +110,7 @@ function collectVariantName(orderStat: Record | null | undefined) { /** * 从 orders/stat 解析标题规则。 * 产品名:type_name → prod_name → product_name - * 变体名:shape/kind/mounts 等拼接,供 B 款飘带判断 + * 变体名:sub_cate_name(如 B款)+ shape/kind/mounts 等,供飘带标题判断 * 兜底:type_id 9 → 场景道具;type_id 11 → 相框标题(与 cartoon 一致) */ export function productTitleSpecFromOrder(