From 3d4afe0904963536cdd60265cfb635668f3adced Mon Sep 17 00:00:00 2001 From: Possible <794329728@qq.com> Date: Wed, 21 Dec 2022 16:10:50 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E4=BF=AE=E6=94=B9=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=90=8D=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/PolishMedal/PolishMedal.php | 4 ++-- profile/example/config/user.ini | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/PolishMedal/PolishMedal.php b/plugin/PolishMedal/PolishMedal.php index b66f316..678bed9 100644 --- a/plugin/PolishMedal/PolishMedal.php +++ b/plugin/PolishMedal/PolishMedal.php @@ -60,13 +60,13 @@ class PolishMedal extends BasePlugin */ public function execute(): void { - if (TimeLock::getTimes() > time() || !getEnable('polishMedal')) return; + if (TimeLock::getTimes() > time() || !getEnable('polish_medal')) return; if (self::$metal_lock < time()) { // 如果勋章过多导致未处理完,就1小时一次,否则10小时一次。 if (empty(self::$grey_fans_medals)) { // 处理每日 - if (getConf('polishMedal.everyday', false, 'bool')) { + if (getConf('polish_medal.everyday', false, 'bool')) { // 如果是 直接定时到第二天7点 self::fetchGreyMedalList(true); self::$metal_lock = time() + TimeLock::timing(7, 0, 0, true); diff --git a/profile/example/config/user.ini b/profile/example/config/user.ini index acb40aa..6d762ce 100644 --- a/profile/example/config/user.ini +++ b/profile/example/config/user.ini @@ -119,7 +119,7 @@ target_room_id = 23058 ; 擦亮徽章 -[polishMedal] +[polish_medal] enable = true everyday = false