mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-22 19:10:53 +08:00
修改体力推送true false判断
This commit is contained in:
parent
958c219454
commit
46d98b64c3
@ -205,7 +205,7 @@ export async function DailyNoteTask() {
|
||||
let task = await Note(e, {
|
||||
render
|
||||
});
|
||||
if (task) {
|
||||
if (!task) {
|
||||
redis.set(sendkey, "1", {
|
||||
EX: sendCD
|
||||
});
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user