fix: 优化微信发送日志展示

This commit is contained in:
Wxw-Gu committed 2026-09-13 11:22:47 +08:00
1 parent cef1ad493c
commit e5bd162a01
12 files changed
+253 -39

No files matched your search

@@ -38,6 +38,7 @@ export class WechatActionLogService {
category: 'wechat_send' as const,
source: record.origin,
purpose: record.purpose,
...(record.triggerType ? { triggerType: record.triggerType } : {}),
timestamp: record.finishedAt || record.startedAt || record.createdAt,
recipientType: record.recipientType,
recipientId: record.recipientId,
@@ -46,7 +47,9 @@ export class WechatActionLogService {
contentPreview: record.contentPreview,
status: record.sendStatus,
errorCode: record.errorCode,
reason: record.decisionReason
reason: record.decisionReason,
...(record.executionId ? { executionId: record.executionId } : {}),
...(record.idempotencyKey ? { idempotencyKey: record.idempotencyKey } : {})
}))
.sort((left, right) => Date.parse(right.timestamp) - Date.parse(left.timestamp))
}