修复图片解密 修复密钥获取

This commit is contained in:
xuncha committed 2026-03-02 16:44:09 +08:00
1 parent fb8663fb24
commit 3d4a79aac6
8 files changed
+32 -14

No files matched your search

+1 -1
View File
@@ -779,7 +779,7 @@ function SettingsPage() {
try {
const accountPath = wxid ? `${dbPath}/${wxid}` : dbPath;
const result = await window.electronAPI.key.autoGetImageKey(accountPath)
const result = await window.electronAPI.key.autoGetImageKey(accountPath, wxid)
if (result.success && result.aesKey) {
if (typeof result.xorKey === 'number') {
setImageXorKey(`0x${result.xorKey.toString(16).toUpperCase().padStart(2, '0')}`)
+1 -1
View File
@@ -320,7 +320,7 @@ function WelcomePage({ standalone = false }: WelcomePageProps) {
try {
// 拼接完整的账号目录,确保 KeyService 能准确找到模板文件
const accountPath = wxid ? `${dbPath}/${wxid}` : dbPath
const result = await window.electronAPI.key.autoGetImageKey(accountPath)
const result = await window.electronAPI.key.autoGetImageKey(accountPath, wxid)
if (result.success && result.aesKey) {
if (typeof result.xorKey === 'number') {
setImageXorKey(`0x${result.xorKey.toString(16).toUpperCase().padStart(2, '0')}`)