mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-17 13:47:44 +00:00
fix: 修复全局时间配置和获取
This commit is contained in:
parent
40bfbda264
commit
22711ee7b1
2 changed files with 5 additions and 3 deletions
|
|
@ -301,7 +301,8 @@ export class Remind extends ZZZPlugin {
|
|||
if (userConfig && userConfig.remindTime) {
|
||||
await this.reply(`当前提醒时间: ${userConfig.remindTime}`);
|
||||
} else {
|
||||
const globalRemindTime = settings.getConfig('remind.globalRemindTime') || '每日20时';
|
||||
const remindConfig = settings.getConfig('remind');
|
||||
const globalRemindTime = remindConfig.globalRemindTime || '每日20时';
|
||||
await this.reply(`个人提醒时间未设置,默认使用全局时间: ${globalRemindTime}`);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue