feat(api): 增加 key_batch.style 字段转换功能
- 在 transformRow 函数中添加对 key_batch.style 的处理逻辑 - 根据整数值映射对应的标签名称进行替换 - 避免负值和不存在映射的情况影响输出 - 优化特殊字段转换处理流程
This commit is contained in:
parent
bc37922651
commit
8702767e47
|
|
@ -1209,6 +1209,15 @@ func transformRow(ds string, fields []string, vals []string) []string {
|
|||
}
|
||||
continue
|
||||
}
|
||||
// key_batch.style - key码样式
|
||||
if f == "key_batch.style" {
|
||||
if n := parseIntVal(v); n >= 0 {
|
||||
if label, ok := constants.KeyBatchStyle[n]; ok {
|
||||
vals[i] = label
|
||||
}
|
||||
}
|
||||
continue
|
||||
}
|
||||
|
||||
// ==================== 特殊字段转换 ====================
|
||||
// 解密/转换订单 key
|
||||
|
|
|
|||
Loading…
Reference in New Issue