mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-10-05 21:05:39 +08:00
21 lines
1.0 KiB
TypeScript
21 lines
1.0 KiB
TypeScript
import type { DatabaseKeyEnvironment } from './database-key'
|
|
|
|
export function buildSafeDiagnosticSummary(
|
|
environment: Omit<DatabaseKeyEnvironment, 'diagnosticSummary'>
|
|
): string {
|
|
return [
|
|
`TraceMemo: ${environment.appVersion}`,
|
|
`操作系统: ${environment.osVersion}`,
|
|
...(environment.architecture ? [`处理器架构: ${environment.architecture}`] : []),
|
|
`微信客户端: ${environment.wechatVersion}`,
|
|
`数据结构: ${environment.dataStructureVersion}`,
|
|
`数据目录: ${environment.dataDirectoryDetected ? '已检测到' : '未检测到'}`,
|
|
`微信进程: ${environment.wechatRunning ? '运行中' : '未运行'}`,
|
|
`数据库连接: ${environment.dbConnected ? '已连接' : '未连接'}`,
|
|
`安全存储: ${environment.encryptionAvailable ? '可用' : '不可用'}`,
|
|
...(typeof environment.pythonAvailable === 'boolean' || typeof environment.fridaAvailable === 'boolean'
|
|
? [`连接环境: ${environment.pythonAvailable && environment.fridaAvailable ? '已准备' : '未准备'}`]
|
|
: [])
|
|
].join('\n')
|
|
}
|