| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- /**
- * 更新相关常量配置
- */
- export class UpdateConstants {
- /**
- * 更新日志URL
- * 可以根据需要修改为你的更新日志地址
- */
- static readonly UPDATE_LOG_URL: string = 'https://static.ss5.xyz/files/update_log.html';
- /**
- * 备用更新日志URL(当主URL无法访问时使用)
- */
- static readonly BACKUP_UPDATE_LOG_URL: string = 'https://gitee.com/your-repo/raw/master/CHANGELOG.md';
- /**
- * 本地更新日志文件路径(可选,用于离线显示)
- */
- static readonly LOCAL_CHANGELOG_PATH: string = 'rawfile/changelog.html';
- /**
- * 更新日志缓存时间(毫秒)
- */
- static readonly CACHE_DURATION: number = 24 * 60 * 60 * 1000; // 24小时
- /**
- * 网络请求超时时间(毫秒)
- */
- static readonly REQUEST_TIMEOUT: number = 10000; // 10秒
- /**
- * 是否启用更新日志功能
- */
- static readonly ENABLE_UPDATE_LOG: boolean = true;
- /**
- * 是否在每次启动时都检查更新日志
- */
- static readonly CHECK_ON_EVERY_LAUNCH: boolean = true;
- /**
- * 更新日志弹窗显示延迟时间(毫秒)
- */
- static readonly DIALOG_SHOW_DELAY: number = 1500;
- /**
- * 应用版本号(手动维护,每次更新时修改此值)
- * 这是一个简单可靠的版本管理方案
- */
- static readonly APP_VERSION: string = '2.1.0';
- /**
- * 构建时间戳(用于区分不同的构建版本)
- */
- static readonly BUILD_TIMESTAMP: string = Date.now().toString();
- }
|