fix:this指向问题 feat:新增osbuild参数
This commit is contained in:
@@ -13,8 +13,8 @@ export class VersionListController {
|
|||||||
this.hashList = ["md5", "sha1", "sha256"];
|
this.hashList = ["md5", "sha1", "sha256"];
|
||||||
this.libmap = new Map();
|
this.libmap = new Map();
|
||||||
this._refreshCache(); // 初始化缓存
|
this._refreshCache(); // 初始化缓存
|
||||||
setInterval(this._refreshCache, 1000 * 60 * 60 * 2); // 2小时刷新缓存
|
setInterval(this._refreshCache.bind(this), 1000 * 60 * 60 * 2); // 2小时刷新缓存(傻逼this)
|
||||||
setInterval(this._refreshLib,1000*60*60*1) // 1小时刷新libmap
|
setInterval(this._refreshLib.bind(this),1000*60*60*1) // 1小时刷新libmap
|
||||||
}
|
}
|
||||||
|
|
||||||
async getVersionList() {
|
async getVersionList() {
|
||||||
@@ -49,6 +49,7 @@ ORDER BY "Date" DESC
|
|||||||
id: row.version,
|
id: row.version,
|
||||||
type: row.Type,
|
type: row.Type,
|
||||||
BuildType: "UWP",
|
BuildType: "UWP",
|
||||||
|
OSBuild: row.OSbuild,
|
||||||
Arch: row.arch,
|
Arch: row.arch,
|
||||||
url,
|
url,
|
||||||
time: row.Date,
|
time: row.Date,
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ export interface IVersionPool {
|
|||||||
Type: string;
|
Type: string;
|
||||||
Date: string;
|
Date: string;
|
||||||
arch: string;
|
arch: string;
|
||||||
|
OSbuild: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IVersion {
|
export interface IVersion {
|
||||||
|
|||||||
Reference in New Issue
Block a user