mirror of
https://github.com/lkeme/BiliHelper-personal.git
synced 2025-12-19 01:20:08 +08:00
[update] checkUpdate add switch
This commit is contained in:
parent
2027c5b9dd
commit
e570bc8ee9
@ -60,12 +60,12 @@ class CheckUpdate extends BasePluginRW
|
||||
*/
|
||||
public function execute(): void
|
||||
{
|
||||
if (TimeLock::getTimes() > time()) return;
|
||||
if (TimeLock::getTimes() > time() || !getEnable('check_update')) return;
|
||||
//
|
||||
if ($this->_checkUpdate()) {
|
||||
TimeLock::setTimes(24 * 60 * 60);
|
||||
} else {
|
||||
TimeLock::setTimes(1 * 60 * 60);
|
||||
TimeLock::setTimes(3 * 60 * 60);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -39,6 +39,10 @@ url = "http://localhost:50001"
|
||||
# 插件功能设置 #
|
||||
#######################
|
||||
|
||||
; 检查主程序更新
|
||||
[check_update]
|
||||
enable = true
|
||||
|
||||
; 主站每日任务(每日登录、观看、投币、分享)
|
||||
[main_site]
|
||||
enable = true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user