mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-22 19:10:53 +08:00
修正体力推送问题
This commit is contained in:
parent
4e6a87df16
commit
958c219454
@ -39,6 +39,10 @@ export async function Note(e, {
|
|||||||
if (isV3) {
|
if (isV3) {
|
||||||
if(e.msg.replace(/全|全部/g,'多').includes('多')){
|
if(e.msg.replace(/全|全部/g,'多').includes('多')){
|
||||||
let ck=await gsCfg.getBingCkSingle(e.user_id)
|
let ck=await gsCfg.getBingCkSingle(e.user_id)
|
||||||
|
if(Object.keys(ck).length==0){
|
||||||
|
e.reply(`请先【#绑定cookie】`)
|
||||||
|
return true;
|
||||||
|
}
|
||||||
let sendMsg=[]
|
let sendMsg=[]
|
||||||
e._reply=e.reply;
|
e._reply=e.reply;
|
||||||
e.reply=((msg)=>{
|
e.reply=((msg)=>{
|
||||||
@ -113,8 +117,7 @@ export async function Note(e, {
|
|||||||
saveJson();
|
saveJson();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
await notes.getNote(cookie,uid,res,{render})
|
return await notes.getNote(cookie,uid,res,{render})
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getDailyNote(uid, cookie) {
|
async function getDailyNote(uid, cookie) {
|
||||||
|
@ -103,7 +103,7 @@ export default class note {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async getNote(cookie, uid, res,{render}){
|
async getNote(cookie, uid, res,{render}){
|
||||||
if (!res || res.retcode !== 0) return true
|
if (!res || res.retcode !== 0) return false
|
||||||
|
|
||||||
let data = res.data;
|
let data = res.data;
|
||||||
//推送任务
|
//推送任务
|
||||||
@ -294,6 +294,7 @@ export default class note {
|
|||||||
render,
|
render,
|
||||||
scale: 1.2
|
scale: 1.2
|
||||||
})
|
})
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
async dateTime_(time) {
|
async dateTime_(time) {
|
||||||
|
Loading…
Reference in New Issue
Block a user