|
@@ -42,7 +42,7 @@ export default class Cache {
|
|
if (this.caches[sign]) {
|
|
if (this.caches[sign]) {
|
|
|
|
|
|
if (expire && Cache.isExpire(this.caches[sign])) {
|
|
if (expire && Cache.isExpire(this.caches[sign])) {
|
|
- return this.caches[sign];
|
|
|
|
|
|
+ return undefined;
|
|
} else {
|
|
} else {
|
|
return this.caches[sign];
|
|
return this.caches[sign];
|
|
}
|
|
}
|
|
@@ -183,7 +183,8 @@ export default class Cache {
|
|
|
|
|
|
// 验证是否过期
|
|
// 验证是否过期
|
|
static isExpire(data:InstructionsCache):boolean {
|
|
static isExpire(data:InstructionsCache):boolean {
|
|
- return !data.expireTime || data.expireTime <=0 || Cache.getNowTime() < data.expireTime;
|
|
|
|
|
|
+
|
|
|
|
+ return !data.expireTime || data.expireTime <=0 || Cache.getNowTime() > data.expireTime;
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|