mirror of https://github.com/KingRan/KR.git
parent
3aeb35735d
commit
ad328cc1af
|
@ -147,11 +147,11 @@ async function jdPet() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (!$.petInfo.goodsInfo) {
|
if (!$.petInfo.goodsInfo) {
|
||||||
$.msg($.name, '', `【提示】京东账号${$.index}${$.nickName || $.UserName}\n暂未选购新的商品`, {
|
//$.msg($.name, '', `【提示】京东账号${$.index}${$.nickName || $.UserName}\n暂未选购新的商品`, {
|
||||||
"open-url": "openapp.jdmoble://"
|
// "open-url": "openapp.jdmoble://"
|
||||||
});
|
//});
|
||||||
if ($.isNode())
|
if ($.isNode())
|
||||||
await notify.sendNotify(`${$.name} - ${$.index} - ${$.nickName || $.UserName}`, `【提示】京东账号${$.index}${$.nickName || $.UserName}\n暂未选购新的商品`);
|
//await notify.sendNotify(`${$.name} - ${$.index} - ${$.nickName || $.UserName}`, `【提示】京东账号${$.index}${$.nickName || $.UserName}\n暂未选购新的商品`);
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
goodsUrl = $.petInfo.goodsInfo && $.petInfo.goodsInfo.goodsUrl;
|
goodsUrl = $.petInfo.goodsInfo && $.petInfo.goodsInfo.goodsUrl;
|
||||||
|
@ -159,19 +159,19 @@ async function jdPet() {
|
||||||
// console.log(`初始化萌宠信息完成: ${JSON.stringify(petInfo)}`);
|
// console.log(`初始化萌宠信息完成: ${JSON.stringify(petInfo)}`);
|
||||||
if ($.petInfo.petStatus === 5) {
|
if ($.petInfo.petStatus === 5) {
|
||||||
await slaveHelp(); //可以兑换而没有去兑换,也能继续助力好友
|
await slaveHelp(); //可以兑换而没有去兑换,也能继续助力好友
|
||||||
option['open-url'] = "openApp.jdMobile://";
|
//option['open-url'] = "openApp.jdMobile://";
|
||||||
$.msg($.name, ``, `【京东账号${$.index}】${$.nickName || $.UserName}\n【提醒⏰】${$.petInfo.goodsInfo.goodsName}已可领取\n请去京东APP或微信小程序查看\n点击弹窗即达`, option);
|
//$.msg($.name, ``, `【京东账号${$.index}】${$.nickName || $.UserName}\n【提醒⏰】${$.petInfo.goodsInfo.goodsName}已可领取\n请去京东APP或微信小程序查看\n点击弹窗即达`, option);
|
||||||
if ($.isNode()) {
|
//if ($.isNode()) {
|
||||||
await notify.sendNotify(`${$.name} - 账号${$.index} - ${$.nickName || $.UserName}奖品已可领取`, `京东账号${$.index} ${$.nickName || $.UserName}\n${$.petInfo.goodsInfo.goodsName}已可领取`);
|
//await notify.sendNotify(`${$.name} - 账号${$.index} - ${$.nickName || $.UserName}奖品已可领取`, `京东账号${$.index} ${$.nickName || $.UserName}\n${$.petInfo.goodsInfo.goodsName}已可领取`);
|
||||||
}
|
//}
|
||||||
return
|
return
|
||||||
} else if ($.petInfo.petStatus === 6) {
|
} else if ($.petInfo.petStatus === 6) {
|
||||||
await slaveHelp(); //已领取红包,但未领养新的,也能继续助力好友
|
await slaveHelp(); //已领取红包,但未领养新的,也能继续助力好友
|
||||||
option['open-url'] = "openApp.jdMobile://";
|
//option['open-url'] = "openApp.jdMobile://";
|
||||||
$.msg($.name, ``, `【京东账号${$.index}】${$.nickName || $.UserName}\n【提醒⏰】已领取红包,但未继续领养新的物品\n请去京东APP或微信小程序查看\n点击弹窗即达`, option);
|
//$.msg($.name, ``, `【京东账号${$.index}】${$.nickName || $.UserName}\n【提醒⏰】已领取红包,但未继续领养新的物品\n请去京东APP或微信小程序查看\n点击弹窗即达`, option);
|
||||||
if ($.isNode()) {
|
//if ($.isNode()) {
|
||||||
await notify.sendNotify(`${$.name} - 账号${$.index} - ${$.nickName || $.UserName}奖品已可领取`, `京东账号${$.index} ${$.nickName || $.UserName}\n已领取红包,但未继续领养新的物品`);
|
//await notify.sendNotify(`${$.name} - 账号${$.index} - ${$.nickName || $.UserName}奖品已可领取`, `京东账号${$.index} ${$.nickName || $.UserName}\n已领取红包,但未继续领养新的物品`);
|
||||||
}
|
//}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
//console.log(`\n【京东账号${$.index}(${$.UserName})的${$.name}好友互助码】${$.petInfo.shareCode}\n`);
|
//console.log(`\n【京东账号${$.index}(${$.UserName})的${$.name}好友互助码】${$.petInfo.shareCode}\n`);
|
||||||
|
@ -194,7 +194,7 @@ async function jdPet() {
|
||||||
$.logErr(e)
|
$.logErr(e)
|
||||||
const errMsg = `京东账号${$.index} ${$.nickName || $.UserName}\n任务执行异常,请检查执行日志 ‼️‼️`;
|
const errMsg = `京东账号${$.index} ${$.nickName || $.UserName}\n任务执行异常,请检查执行日志 ‼️‼️`;
|
||||||
if ($.isNode())
|
if ($.isNode())
|
||||||
await notify.sendNotify(`${$.name}`, errMsg);
|
//await notify.sendNotify(`${$.name}`, errMsg);
|
||||||
$.msg($.name, '', `${errMsg}`)
|
$.msg($.name, '', `${errMsg}`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue