liufumingren
511f7abf94
fix(dgj): 补齐 listOrders 的 scanHost 定义,并补快手 key / 菜鸟 templateURL 打印字段
1) 修正 F47D8CC 的漏提:那次只提交了「补查其它域名」的调用侧
(`for (const host of hosts) await scanHost(host);`),把 `const scanHost = async host => {`
的定义留在了工作区,HEAD 上 `listOrders` 会 ReferenceError。本次一并补齐,HEAD 与工作区一致。
2) 面单打印字段按平台口径区分(WMS 侧联调结论):
- 快手(KS):printinfo = encryptedData,encryptprintinfo / key = 逐单密钥(原口径不变)
- 菜鸟系(TB / TM / TGC / 1688):平台 printInfo 为空,菜鸟打印只认整包 JSON
`{ encryptedData, signature, ver, templateURL }`,按该形态回拼 printinfo;
templateURL 取 `contents[0].templateURL`
- 其它平台:printinfo 原样用平台下发数据
- `extractDocumentContents` 增加 template_url 字段(缺失时为空串)
3) 单测:printPlatformDgj.test.js 覆盖 template_url 解析与淘宝/快手/其它平台三种口径,
test/app/lib 73 passing;eslint 干净
4) 文档:WMS-OMS-取号对接.md 追加 WMS 侧核实记录(快手 printinfo 未落库的报文缺字段结论、
打印数据形态兼容、菜鸟 templateURL 模板要求与对账表)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-07 20:33:33 +08:00
..
2026-11-07 20:33:33 +08:00
2026-11-04 04:10:37 +08:00
2026-11-07 08:43:16 +08:00
2026-11-07 19:05:36 +08:00
2026-11-07 20:33:33 +08:00
2026-09-09 20:00:54 +08:00
2026-11-03 03:57:11 +08:00
2026-09-09 20:00:54 +08:00
2026-09-14 22:14:23 +08:00
2026-11-01 23:17:11 +08:00
2026-11-01 23:46:39 +08:00
2026-09-14 22:14:23 +08:00
2026-11-03 17:31:44 +08:00