diff --git a/apps/Note.js b/apps/Note.js index ea75e7c..6f1fbc2 100644 --- a/apps/Note.js +++ b/apps/Note.js @@ -205,7 +205,7 @@ export async function DailyNoteTask() { let task = await Note(e, { render }); - if (task) { + if (!task) { redis.set(sendkey, "1", { EX: sendCD }); diff --git a/model/note.js b/model/note.js index 7af8d14..1b00742 100644 --- a/model/note.js +++ b/model/note.js @@ -103,12 +103,12 @@ export default class note { } async getNote(cookie, uid, res,{render}){ - if (!res || res.retcode !== 0) return false + if (!res || res.retcode !== 0) return true let data = res.data; //推送任务 if (this.e.isTask && data.current_resin < this.e.sendResin) { - return false; + return true; } if (this.e.isTask) { Bot.logger.mark(`体力推送:${this.e.user_id}`); @@ -294,7 +294,7 @@ export default class note { render, scale: 1.2 }) - return true; + return !this.e?.isTask; } async dateTime_(time) {