mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 21:27:47 +00:00
fix: 推送时好友判断
This commit is contained in:
parent
20af0deb68
commit
a6542a1ffd
1 changed files with 3 additions and 2 deletions
|
|
@ -342,9 +342,10 @@ export class Remind extends ZZZPlugin {
|
|||
const now = new Date();
|
||||
const globalRemindTime = globalRemindConfig.globalRemindTime || '每日20时';
|
||||
|
||||
for (const userId in allUserConfigs) {
|
||||
const userConfig = JSON.parse(allUserConfigs[userId]);
|
||||
for (const key in allUserConfigs) {
|
||||
const userConfig = JSON.parse(allUserConfigs[key]);
|
||||
if (!userConfig.enable) continue;
|
||||
const userId = +key;
|
||||
if (!Bot.fl.get(userId)) continue;
|
||||
|
||||
const remindTime = userConfig.remindTime || globalRemindTime;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue