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 |
|
liufumingren
|
7f8cff808b
|
feat(waybill): 取号时解析并留痕打印记录ID(PrintHistoryIds)
平台 ExpressPrint 响应里有 Data.PrintHistoryIds,元素 { Id, Pid, WaybillCode,
WaybillCodeChild, BatchIndex },其中 Id 即 printHistoryId:重打/作废/查打印记录
(PrintHistory/LoadPrintData)都按它回捞。之前只用了 WaybillCode/printinfo,
这块被丢掉了。
- dgj.fetchWaybillNo 解析为 [{ id, pid, waybill_code, batch_index }]
- waybillGet 写入 waybill_fetch_records.print_history_ids(JSON 数组,多包裹对齐)
- 仅本地留痕,不改回 WMS 的响应契约
- 迁移 20261107030000 加列;单测覆盖真实响应样例与多包裹/缺失字段
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
2026-11-07 06:26:46 +08:00 |
|