fix:this指向问题 feat:新增osbuild参数
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -4,6 +4,7 @@ export interface IVersionPool {
|
||||
Type: string;
|
||||
Date: string;
|
||||
arch: string;
|
||||
OSbuild: string;
|
||||
}
|
||||
|
||||
export interface IVersion {
|
||||
|
||||
Reference in New Issue
Block a user