Files
WechatExplorer/src/shared/connection-diagnostics.ts
T
Wxw-Gu 05b881d79e fix: mac arm通过文件夹打开被判定为intel芯片
mac os升级27 权限问题解决文档
2026-11-06 11:10:01 +08:00

28 lines
1.3 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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.hardwareArchitecture
? [
`硬件架构: ${environment.hardwareArchitecture}${
environment.underARM64Translation ? '(Rosetta 转译)' : ''
}`
]
: []),
`微信客户端: ${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')
}