feat(m5): add simulated callback event delivery for testing

This commit is contained in:
2026-05-25 15:04:03 +08:00
parent ca1279162b
commit 1cef437fb3
3 changed files with 74 additions and 3 deletions
@@ -280,6 +280,14 @@ export function patchCallbackInboxLink(id, body) {
return axios.patch(`/api/v1/callback-inbox/${id}/link`, body);
}
/**
* M5-F10:模拟投递(仅测试环境)。
* @param {Record<string, unknown>} body
*/
export function simulateCallback(body) {
return axios.post('/api/v1/callback-inbox/simulate', body);
}
/**
* I8:将 Webhook 侧 DEAD 出库按收据 ID 重新入队(需平台配置 LICENSE_WEBHOOK_*)。
* @param {string | number} id — callback inbox id