修复了图片解密失败的问题

This commit is contained in:
ace
2026-02-27 11:07:54 +08:00
parent 7365831ec1
commit ec0eb64ffd
9 changed files with 522 additions and 267 deletions

View File

@@ -852,9 +852,9 @@ function registerIpcHandlers() {
})
// 视频相关
ipcMain.handle('video:getVideoInfo', async (_, videoMd5: string) => {
ipcMain.handle('video:getVideoInfo', async (_, videoMd5: string, sessionId?: string) => {
try {
const result = await videoService.getVideoInfo(videoMd5)
const result = await videoService.getVideoInfo(videoMd5, sessionId)
return { success: true, ...result }
} catch (e) {
return { success: false, error: String(e), exists: false }