feat: 提示文案支持通过配置更新

This commit is contained in:
digua
2025-12-20 00:44:59 +08:00
parent 77b7786777
commit 80c5248444
10 changed files with 218 additions and 65 deletions
+11
View File
@@ -59,6 +59,17 @@ export function registerWindowHandlers(ctx: IpcContext): void {
return app.getVersion()
})
// 获取动态文案配置
ipcMain.handle('app:fetchRemoteConfig', async (_, url: string) => {
try {
const response = await fetch(url)
const data = await response.json()
return { success: true, data }
} catch (error) {
return { success: false, error: String(error) }
}
})
// ==================== 更新检查 ====================
ipcMain.on('check-update', () => {
autoUpdater.checkForUpdates()