修改配置名格式

This commit is contained in:
Possible 2022-12-21 16:10:50 +08:00
parent be91ae7408
commit 3d4afe0904
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -119,7 +119,7 @@ target_room_id = 23058
; 擦亮徽章
[polishMedal]
[polish_medal]
enable = true
everyday = false