* fix:优化表述

* fix:修复了json导出的格式
This commit is contained in:
xuncha
2026-01-25 18:29:50 +08:00
committed by GitHub
parent b9d1ea316f
commit 9f31ac0529

View File

@@ -1605,6 +1605,14 @@ class ExportService {
} }
} }
private getWeflowHeader(): { version: string; exportedAt: number; generator: string } {
return {
version: '1.0.3',
exportedAt: Math.floor(Date.now() / 1000),
generator: 'WeFlow'
}
}
/** /**
* 生成通用的导出元数据 (参考 ChatLab 格式) * 生成通用的导出元数据 (参考 ChatLab 格式)
*/ */
@@ -2005,7 +2013,9 @@ class ExportService {
options.displayNamePreference || 'remark' options.displayNamePreference || 'remark'
) )
const weflow = this.getWeflowHeader()
const detailedExport: any = { const detailedExport: any = {
weflow,
session: { session: {
wxid: sessionId, wxid: sessionId,
nickname: sessionNickname, nickname: sessionNickname,