支持单位授权与客户端限制

This commit is contained in:
Codex
2026-06-01 11:58:14 +08:00
parent 28adc8143a
commit c136cc2cc8
36 changed files with 861 additions and 49 deletions

View File

@@ -20,7 +20,7 @@ import {
getUpdateState,
openReleasesPage,
} from "../services/autoUpdater";
import { getDeviceId } from "../services/system/deviceId";
import { getDeviceId, getPrimaryLocalIp } from "../services/system/deviceId";
import { getTrayManager } from "../window/trayManager";
import { getAutoLaunchManager } from "../window/autoLaunchManager";
import { APP_DISPLAY_NAME } from "@shared/constants";
@@ -284,6 +284,10 @@ export function registerAppHandlers(ctx: HandlerContext): void {
return getDeviceId();
});
ipcMain.handle("app:getPrimaryLocalIp", () => {
return getPrimaryLocalIp();
});
ipcMain.handle("app:checkUpdate", async () => {
try {
return await checkForUpdates();