diff --git a/src/controller/versionlist.controller.ts b/src/controller/versionlist.controller.ts index 45188be..d294024 100644 --- a/src/controller/versionlist.controller.ts +++ b/src/controller/versionlist.controller.ts @@ -13,8 +13,8 @@ export class VersionListController { this.hashList = ["md5", "sha1", "sha256"]; this.libmap = new Map(); this._refreshCache(); // 初始化缓存 - setInterval(this._refreshCache, 1000 * 60 * 60 * 2); // 2小时刷新缓存 - setInterval(this._refreshLib,1000*60*60*1) // 1小时刷新libmap + setInterval(this._refreshCache.bind(this), 1000 * 60 * 60 * 2); // 2小时刷新缓存(傻逼this) + setInterval(this._refreshLib.bind(this),1000*60*60*1) // 1小时刷新libmap } async getVersionList() { @@ -49,6 +49,7 @@ ORDER BY "Date" DESC id: row.version, type: row.Type, BuildType: "UWP", + OSBuild: row.OSbuild, Arch: row.arch, url, time: row.Date, diff --git a/src/types/versionlist.types.ts b/src/types/versionlist.types.ts index 8c9bb99..36b3abc 100644 --- a/src/types/versionlist.types.ts +++ b/src/types/versionlist.types.ts @@ -4,6 +4,7 @@ export interface IVersionPool { Type: string; Date: string; arch: string; + OSbuild: string; } export interface IVersion {