diff --git a/backend/app/lib/printPlatform/dgj.js b/backend/app/lib/printPlatform/dgj.js index e005e7a..a12e894 100644 --- a/backend/app/lib/printPlatform/dgj.js +++ b/backend/app/lib/printPlatform/dgj.js @@ -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; }