mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-12-01 00:51:51 +08:00
fix: 优化微信发送日志展示
This commit is contained in:
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))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user