修改:相框手办标题输入
continuous-integration/drone/push Build was killed
continuous-integration/drone/promote/prod Build is passing

This commit is contained in:
Linzm committed 2026-11-10 15:05:29 +08:00
1 parent 3c3c71ebee
commit 3b10685876
1 file changed
+2 -1
+2 -1
View File
@@ -92,6 +92,7 @@ function textOf(...values: unknown[]) {
function collectVariantName(orderStat: Record<string, any> | null | undefined) { function collectVariantName(orderStat: Record<string, any> | null | undefined) {
if (!orderStat) return '' if (!orderStat) return ''
return [ return [
orderStat.sub_cate_name,
orderStat.shape_name, orderStat.shape_name,
orderStat.kind_name, orderStat.kind_name,
orderStat.mounts_name, orderStat.mounts_name,
@@ -109,7 +110,7 @@ function collectVariantName(orderStat: Record<string, any> | null | undefined) {
/** /**
* 从 orders/stat 解析标题规则。 * 从 orders/stat 解析标题规则。
* 产品名:type_name → prod_name → product_name * 产品名:type_name → prod_name → product_name
* 变体名:shape/kind/mounts 等拼接,供 B 款飘带判断 * 变体名:sub_cate_name(如 B款)+ shape/kind/mounts 等,供飘带标题判断
* 兜底:type_id 9 → 场景道具;type_id 11 → 相框标题(与 cartoon 一致) * 兜底:type_id 9 → 场景道具;type_id 11 → 相框标题(与 cartoon 一致)
*/ */
export function productTitleSpecFromOrder( export function productTitleSpecFromOrder(