优化,宠汪汪邀请助力加入随机互助,因token时效问题,不一定有效
This commit is contained in:
@ -127,12 +127,15 @@ async function jdWish() {
|
||||
await showMsg();
|
||||
}
|
||||
|
||||
async function showMsg() {
|
||||
function showMsg() {
|
||||
return new Promise(async resolve => {
|
||||
message += `本次获得${parseInt($.totalBeanNum) - $.nowBean}京豆,${parseInt($.totalNum) - $.nowNum}金币\n`
|
||||
message += `累计获得${$.totalBeanNum}京豆,${$.totalNum}金币\n`
|
||||
$.msg($.name, '', `京东账号${$.index} ${$.nickName}\n${message}`);
|
||||
// 云端大于10元无门槛红包时进行通知推送
|
||||
if ($.isNode() && $.totalScore >= 10000) await notify.sendNotify(`${$.name} - 京东账号${$.index} - ${$.nickName}`, `京东账号${$.index} ${$.nickName}\n当前金币:${$.totalScore}个\n可兑换无门槛红包:${parseInt($.totalNum) / 1000}元\n`,)
|
||||
resolve();
|
||||
})
|
||||
}
|
||||
function getAuthorShareCode(url) {
|
||||
return new Promise(resolve => {
|
||||
@ -250,7 +253,7 @@ function getUserInfo() {
|
||||
if (safeGet(data)) {
|
||||
data = JSON.parse(data);
|
||||
if (data.data.shareTaskRes)
|
||||
console.log(`您的好友助力码为${data.data.shareTaskRes.itemId}`)
|
||||
console.log(`您的${$.name}好友助力码为${data.data.shareTaskRes.itemId}`)
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user