mirror of https://github.com/6dylan6/jdpro.git
This commit is contained in:
parent
98ea6bb364
commit
764f01bd3d
|
@ -122,6 +122,7 @@ RemainMessage += "⭕提醒:⭕" + '\n';
|
||||||
RemainMessage += '【京喜特价金币】京东特价版->我的->金币(可兑换无门槛红包)\n';
|
RemainMessage += '【京喜特价金币】京东特价版->我的->金币(可兑换无门槛红包)\n';
|
||||||
RemainMessage += '【领现金】京东->搜领现金(可微信提现或兑换红包)\n';
|
RemainMessage += '【领现金】京东->搜领现金(可微信提现或兑换红包)\n';
|
||||||
RemainMessage += '【话费积分】京东->充值中心-赚积分兑话费(180天效期)\n';
|
RemainMessage += '【话费积分】京东->充值中心-赚积分兑话费(180天效期)\n';
|
||||||
|
RemainMessage += '【超市卡】京东超市-超市卡(赠金30天效期,购买超市商品可用)\n';
|
||||||
RemainMessage += '【东东农场】京东->我的->东东农场,完成可兑换无门槛红包,可用于任意商品\n';
|
RemainMessage += '【东东农场】京东->我的->东东农场,完成可兑换无门槛红包,可用于任意商品\n';
|
||||||
RemainMessage += '【其他】不同类别红包不能叠加使用,自测';
|
RemainMessage += '【其他】不同类别红包不能叠加使用,自测';
|
||||||
|
|
||||||
|
@ -830,6 +831,15 @@ async function showMsg() {
|
||||||
}
|
}
|
||||||
ReturnMessage += `\n`;
|
ReturnMessage += `\n`;
|
||||||
}
|
}
|
||||||
|
let marketcard = await marketCard();
|
||||||
|
if (marketcard) {
|
||||||
|
ReturnMessage += `【超市卡】${marketcard.balance}元`;
|
||||||
|
if (marketcard.expirationGiftAmountDes) {
|
||||||
|
ReturnMessage += `(${marketcard.expirationGiftAmountDes})`;
|
||||||
|
}
|
||||||
|
ReturnMessage += `\n`;
|
||||||
|
}
|
||||||
|
|
||||||
if ($.jdCash) {
|
if ($.jdCash) {
|
||||||
ReturnMessage += `【其他信息】`;
|
ReturnMessage += `【其他信息】`;
|
||||||
|
|
||||||
|
@ -845,6 +855,7 @@ async function showMsg() {
|
||||||
ReturnMessage += `💸💸💸临期京豆明细💸💸💸\n`;
|
ReturnMessage += `💸💸💸临期京豆明细💸💸💸\n`;
|
||||||
ReturnMessage += `${strGuoqi}`;
|
ReturnMessage += `${strGuoqi}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
ReturnMessage += `🧧🧧🧧红包明细🧧🧧🧧\n`;
|
ReturnMessage += `🧧🧧🧧红包明细🧧🧧🧧\n`;
|
||||||
ReturnMessage += `${$.message}`;
|
ReturnMessage += `${$.message}`;
|
||||||
strsummary += `红包${$.balance}元`
|
strsummary += `红包${$.balance}元`
|
||||||
|
@ -2232,6 +2243,38 @@ function getek() {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
function marketCard() {
|
||||||
|
let opt = {
|
||||||
|
url: `https://api.m.jd.com/atop_channel_marketCard_cardInfo`,
|
||||||
|
body: `appid=jd-super-market&t=${Date.now()}&functionId=atop_channel_marketCard_cardInfo&client=m&uuid=&body=%7B%22babelChannel%22%3A%22ttt9%22%2C%22isJdApp%22%3A%221%22%2C%22isWx%22%3A%220%22%7D`,
|
||||||
|
headers: {
|
||||||
|
'Origin': 'https://pro.m.jd.com',
|
||||||
|
'User-Agent': $.UA,
|
||||||
|
'Cookie': cookie
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let carddata = '';
|
||||||
|
return new Promise(async (resolve) => {
|
||||||
|
$.post(opt, async (err, resp, data) => {
|
||||||
|
try {
|
||||||
|
if (err) {
|
||||||
|
console.log(`${JSON.stringify(err)}`)
|
||||||
|
console.log(`marketCard 请求失败,请检查网路重试`)
|
||||||
|
} else {
|
||||||
|
data = JSON.parse(data)
|
||||||
|
if (data.success) {
|
||||||
|
carddata = data.data?.floorData?.items ? data.data?.floorData?.items[0].marketCardVO : '';
|
||||||
|
} else {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
$.logErr(e, resp);
|
||||||
|
} finally {
|
||||||
|
resolve(carddata);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
function area() {
|
function area() {
|
||||||
let i = getRand(1, 30)
|
let i = getRand(1, 30)
|
||||||
let o = getRand(70, 3000)
|
let o = getRand(70, 3000)
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue