2
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2024-12-23 03:20:52 +08:00

修改体力推送true false判断

This commit is contained in:
Ctrlcvs 2022-11-09 23:34:00 +08:00
parent 958c219454
commit 46d98b64c3
2 changed files with 4 additions and 4 deletions

View File

@ -205,7 +205,7 @@ export async function DailyNoteTask() {
let task = await Note(e, { let task = await Note(e, {
render render
}); });
if (task) { if (!task) {
redis.set(sendkey, "1", { redis.set(sendkey, "1", {
EX: sendCD EX: sendCD
}); });

View File

@ -103,12 +103,12 @@ export default class note {
} }
async getNote(cookie, uid, res,{render}){ async getNote(cookie, uid, res,{render}){
if (!res || res.retcode !== 0) return false if (!res || res.retcode !== 0) return true
let data = res.data; let data = res.data;
//推送任务 //推送任务
if (this.e.isTask && data.current_resin < this.e.sendResin) { if (this.e.isTask && data.current_resin < this.e.sendResin) {
return false; return true;
} }
if (this.e.isTask) { if (this.e.isTask) {
Bot.logger.mark(`体力推送:${this.e.user_id}`); Bot.logger.mark(`体力推送:${this.e.user_id}`);
@ -294,7 +294,7 @@ export default class note {
render, render,
scale: 1.2 scale: 1.2
}) })
return true; return !this.e?.isTask;
} }
async dateTime_(time) { async dateTime_(time) {