merge: resolve upstream/dev conflicts in export workflow branch

This commit is contained in:
tisonhuang
2026-03-05 13:55:42 +08:00
14 changed files with 301 additions and 21 deletions

View File

@@ -22,6 +22,7 @@ import { snsService, isVideoUrl } from './services/snsService'
import { contactExportService } from './services/contactExportService'
import { windowsHelloService } from './services/windowsHelloService'
import { exportCardDiagnosticsService } from './services/exportCardDiagnosticsService'
import { cloudControlService } from './services/cloudControlService'
import { registerNotificationHandlers, showNotification } from './windows/notificationWindow'
import { httpService } from './services/httpService'
@@ -919,6 +920,19 @@ function registerIpcHandlers() {
return exportCardDiagnosticsService.exportCombinedLogs(filePath, payload?.frontendLogs || [])
})
// 数据收集服务
ipcMain.handle('cloud:init', async () => {
await cloudControlService.init()
})
ipcMain.handle('cloud:recordPage', (_, pageName: string) => {
cloudControlService.recordPage(pageName)
})
ipcMain.handle('cloud:getLogs', async () => {
return cloudControlService.getLogs()
})
ipcMain.handle('app:checkForUpdates', async () => {
if (!AUTO_UPDATE_ENABLED) {
return { hasUpdate: false }