mirror of
https://github.com/hpd840321/craftlabs-authorization-sdk.git
synced 2026-06-09 10:00:30 +08:00
feat(m5): add simulated callback event delivery for testing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user