diff --git a/app/service/systems/warehouseNotify.js b/app/service/systems/warehouseNotify.js index 026ac7d..f4f09de 100644 --- a/app/service/systems/warehouseNotify.js +++ b/app/service/systems/warehouseNotify.js @@ -260,6 +260,16 @@ class WarehouseNotifyService extends Service { `timestamp=${timestamp}`, `sign=${encodeURIComponent(sign)}`, ].join('&'); + // 应用未配置回调地址:视为本次尝试失败,交由上层继续尝试其余候选应用 + if (!config.url) { + return { + success: false, + appId: config.appId, + httpStatus: null, + response: null, + error: '回调地址为空', + }; + } const separator = config.url.includes('?') ? '&' : '?'; const url = `${config.url}${separator}${queryString}`; const startTime = Date.now();