mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-18 06:07:34 +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 now = new Date();
|
||||||
const globalRemindTime = globalRemindConfig.globalRemindTime || '每日20时';
|
const globalRemindTime = globalRemindConfig.globalRemindTime || '每日20时';
|
||||||
|
|
||||||
for (const userId in allUserConfigs) {
|
for (const key in allUserConfigs) {
|
||||||
const userConfig = JSON.parse(allUserConfigs[userId]);
|
const userConfig = JSON.parse(allUserConfigs[key]);
|
||||||
if (!userConfig.enable) continue;
|
if (!userConfig.enable) continue;
|
||||||
|
const userId = +key;
|
||||||
if (!Bot.fl.get(userId)) continue;
|
if (!Bot.fl.get(userId)) continue;
|
||||||
|
|
||||||
const remindTime = userConfig.remindTime || globalRemindTime;
|
const remindTime = userConfig.remindTime || globalRemindTime;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue