fix: 清理导出服务日志并简化whisper接口参数

- 移除exportService中的冗余console日志输出
- 简化whisper API接口,移除downloadModel和getModelStatus的payload参数
- 清理图片、表情、语音导出过程中的调试日志
- 移除数据库查询和媒体处理中的详细日志记录
- 优化代码可读性,减少控制台输出噪音
This commit is contained in:
Forrest
2026-01-17 16:24:18 +08:00
parent 82ba0344b9
commit dc12df0fcf
9 changed files with 33 additions and 104 deletions

View File

@@ -184,10 +184,10 @@ contextBridge.exposeInMainWorld('electronAPI', {
},
whisper: {
downloadModel: (payload: { modelName: string; downloadDir?: string; source?: string }) =>
ipcRenderer.invoke('whisper:downloadModel', payload),
getModelStatus: (payload: { modelName: string; downloadDir?: string }) =>
ipcRenderer.invoke('whisper:getModelStatus', payload),
downloadModel: () =>
ipcRenderer.invoke('whisper:downloadModel'),
getModelStatus: () =>
ipcRenderer.invoke('whisper:getModelStatus'),
onDownloadProgress: (callback: (payload: { modelName: string; downloadedBytes: number; totalBytes?: number; percent?: number }) => void) => {
ipcRenderer.on('whisper:downloadProgress', (_, payload) => callback(payload))
return () => ipcRenderer.removeAllListeners('whisper:downloadProgress')