fix(external-send): 「请先勾选要发货的订单」补一句报文口径提示
实测对比(2026-11-07,只发空报文): - 空 Orders → 「当前选中的订单都不是待发货状态,已取消发货」 - 我们的完整报文(6.5KB,Id/LogicOrderId/PathFlowCode/WaybillCode 齐全)→ 「请先勾选要发货的订单」 说明平台把我们提交的 Orders 当成「没有勾选」,属于报文口径问题,不是业务状态问题。 失败信息里补一句「平台未识别提交的订单报文,需核对 OnlineSendBatch 报文口径」, 避免和「没取号/没打印」混淆。 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
9cc301916e
commit
c4943523b7
@ -2884,7 +2884,13 @@ class DgjService extends PrintPlatformService {
|
||||
json.Message || `HTTP ${res.status}`,
|
||||
...hints,
|
||||
].filter(Boolean).join(';');
|
||||
throw buildPlatformError(`店管家发货同步失败:${reason}`, res);
|
||||
// 「请先勾选要发货的订单」= 平台没把提交的 Orders 当成有效选中项,
|
||||
// 属于报文口径问题(不是业务状态问题),补一句指向文档的提示便于排查
|
||||
const notSelected = /勾选/.test(String(json.Message || ''));
|
||||
throw buildPlatformError(
|
||||
`店管家发货同步失败:${reason}${notSelected ? '(平台未识别提交的订单报文,需核对 OnlineSendBatch 报文口径)' : ''}`,
|
||||
res
|
||||
);
|
||||
}
|
||||
return res.json;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user