Skip to content

Commit 50d8264

Browse files
committed
🐛 修复更新间隔设置从不失效 #115
1 parent 1b87ffc commit 50d8264

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/pkg/config/config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ export class SystemConfig {
8585

8686
// 检查更新周期,单位为秒
8787
public get checkScriptUpdateCycle(): number {
88-
return <number>this.cache.get("check_script_update_cycle") || 86400;
88+
if (this.cache.get("check_script_update_cycle") === undefined) {
89+
return 86400;
90+
}
91+
return <number>this.cache.get("check_script_update_cycle");
8992
}
9093

9194
public set checkScriptUpdateCycle(n: number) {

0 commit comments

Comments
 (0)