feat: 档案和导出页面支持查看多选消息

This commit is contained in:
Wxw-Gu committed 2026-11-19 17:53:35 +08:00
1 parent 2fb519a373
commit b86582e606
19 files changed
+1897 -152

No files matched your search

@@ -761,7 +761,7 @@ export class AutomationActionRunner {
* 定时日报的统一发送出口。
*
* **必须走 `WechatActionGateway`**:幂等 + 3 秒发送间隔 + 审计落盘都在那里。
* Automation 层不允许知道 OneBot / WCHook / native host / Windows hook 的存在。
* Automation 层不允许知道 native host 的存在。
*/
private async sendScheduledReportImage(
input: ScheduledReportRunInput,
@@ -879,7 +879,7 @@ export class AutomationActionRunner {
*
* **必须走 `WechatActionGateway`**:幂等 + 3 秒发送间隔 + 审计落盘都在那里,
* 直接调个人微信发送会绕过全部三样。Automation 层也不允许知道
* OneBot / WCHook / native host / Windows hook 的存在。
* native host 的存在。
*
* 幂等键由 **eventId** 派生(不是 executionId):审计是落盘的,
* 于是"重启后重复投递同一退群事件"会被持久层直接短路。
+4
View File
@@ -1,6 +1,7 @@
import { createHash, randomUUID } from 'node:crypto'
import { WechatDb, WechatMessage } from '../wechat-db'
import {
attachForwardBundleRecordDir,
parseImageBufferDataUrlFromRow,
parseImageDatNameFromRow,
parseMessageContent,
@@ -613,6 +614,9 @@ function listSourceMessages(
thumbDatName: parsed.thumbDatName || parseImageDatNameFromRow(msg),
thumbDataUrl: parsed.thumbDataUrl || parseImageBufferDataUrlFromRow(msg.raw || msg)
}
} else if (parsed.type === 'forwardBundle') {
const recordDir = parseImageDatNameFromRow(msg.raw || msg)
contentData = attachForwardBundleRecordDir(parsed, recordDir)
} else if (parsed.type !== 'system') {
if (parsed.type === 'sticker' && !parsed.url && parsed.md5) {
parsed.url = wcdb4Client.resolveEmoticonCdnUrl(parsed.md5)