修复与部分引用功能相关联的无法读取解密配置的问题

This commit is contained in:
ethan
2026-04-05 17:48:12 -04:00
parent 209b91bfef
commit b8bf29277a
4 changed files with 31 additions and 5 deletions

View File

@@ -5,6 +5,9 @@ interface ExportWorkerConfig {
sessionIds: string[]
outputDir: string
options: ExportOptions
dbPath?: string
decryptKey?: string
myWxid?: string
resourcesPath?: string
userDataPath?: string
logEnabled?: boolean
@@ -29,6 +32,11 @@ async function run() {
wcdbService.setPaths(config.resourcesPath || '', config.userDataPath || '')
wcdbService.setLogEnabled(config.logEnabled === true)
exportService.setRuntimeConfig({
dbPath: config.dbPath,
decryptKey: config.decryptKey,
myWxid: config.myWxid
})
const result = await exportService.exportSessions(
Array.isArray(config.sessionIds) ? config.sessionIds : [],