fix: close receipt delivery workflows

This commit is contained in:
hectorzhao
2026-07-24 14:40:57 +08:00
parent 2ee39056eb
commit 91f04f5288
22 changed files with 829 additions and 48 deletions
@@ -51,7 +51,10 @@ export class GatewayEventsController {
&& body.eventType === 'submit_resp'
) || (
body.direction === 'platform_to_client'
&& body.eventType === 'submit_resp'
&& ['submit_resp', 'deliver_receipt', 'deliver_uplink'].includes(body.eventType)
) || (
body.direction === 'client_to_platform'
&& body.eventType === 'deliver_resp'
);
if (body.protocol !== 'cmpp' || !allowedPacket || !['success', 'failed'].includes(body.status)) {
throw new BadRequestException('Unsupported Gateway protocol log event');