FEAT => 本次更新项目为:检查更新

This commit is contained in:
超级老白兔
2025-08-05 18:12:32 +08:00
parent a1ae5e9364
commit 2deddf6fd4

View File

@@ -10,7 +10,7 @@ interface UpdateInfo {
class UpdateChecker {
private currentVersion: string;
private checkInterval: number = 1000; // 1秒检查一次(用于测试)
private checkInterval: number = 1000 * 60 * 5; // 5分钟检查一次
private intervalId: NodeJS.Timeout | null = null;
private updateCallbacks: ((info: UpdateInfo) => void)[] = [];
private currentHashes: string[] = [];