From 8f29a412cf7f6a578929366197805633f506b8ab Mon Sep 17 00:00:00 2001 From: Tianpao Date: Mon, 6 Oct 2025 14:55:43 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9Athis=E6=8C=87=E5=90=91=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20feat=EF=BC=9A=E6=96=B0=E5=A2=9Eosbuild=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controller/versionlist.controller.ts | 5 +++-- src/types/versionlist.types.ts | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) 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 {