feat: 统一发送能力 接入退群通知与定时日报

This commit is contained in:
Wxw-Gu committed 2026-09-02 19:43:30 +08:00
1 parent e1f4ec79dd
commit 27f4108cf9
9 files changed
+150 -54

No files matched your search

+11 -9
View File
@@ -644,7 +644,7 @@ export class ScheduledReportService {
fallbackStage: ScheduledReportExecutionStage,
status: 'failed' | 'waiting_to_send' | 'partial_success' = 'failed',
patch: Partial<ScheduledReportExecution> = {},
notificationType: ScheduledReportNotificationType = 'failure',
notificationType: ScheduledReportNotificationType | null = 'failure',
code?: string,
errorStatus?: number,
errorType?: string
@@ -691,13 +691,15 @@ export class ScheduledReportService {
suggestedAction: normalized.suggestedAction,
retryable: normalized.retryable
},
{
type: notificationType,
severity: normalized.severity,
title: normalized.userTitle,
message: normalized.userMessage,
suggestedAction: normalized.suggestedAction
}
notificationType
? {
type: notificationType,
severity: normalized.severity,
title: normalized.userTitle,
message: normalized.userMessage,
suggestedAction: normalized.suggestedAction
}
: undefined
)
return completed
}
@@ -840,7 +842,7 @@ export class ScheduledReportService {
sendStatus: unavailable ? 'unavailable' : 'failed',
sendError: actionError
},
'partial_success',
unavailable ? null : 'partial_success',
unavailable ? 'WECHAT_SEND_UNAVAILABLE' : 'WECHAT_SEND_FAILED'
)
}