mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-24 23:06:51 +00:00
merge: resolve upstream/dev conflicts in export workflow branch
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user