fix: update IPC handler for base64 file and enhance upload response structure in GeminiService

This commit is contained in:
suyao
2025-05-10 16:21:51 +08:00
parent 7ab1380407
commit c3124a8cfc
2 changed files with 4 additions and 2 deletions
-1
View File
@@ -210,7 +210,6 @@ export function registerIpc(mainWindow: BrowserWindow, app: Electron.App) {
ipcMain.handle(IpcChannel.File_WriteWithId, fileManager.writeFileWithId)
ipcMain.handle(IpcChannel.File_SaveImage, fileManager.saveImage)
ipcMain.handle(IpcChannel.File_Base64Image, fileManager.base64Image)
ipcMain.handle('file:base64File', fileManager.base64File)
ipcMain.handle(IpcChannel.File_Base64File, fileManager.base64File)
ipcMain.handle(IpcChannel.File_Download, fileManager.downloadFile)
ipcMain.handle(IpcChannel.File_Copy, fileManager.copyFile)
@@ -47,7 +47,10 @@ export class GeminiService extends BaseFileService {
fileId: uploadResult.name || '',
displayName: file.origin_name,
status,
originalFile: uploadResult
originalFile: {
type: 'gemini',
file: uploadResult
}
}
// 只缓存成功的文件