mirror of
https://github.com/shufflewzc/faker2.git
synced 2025-04-23 10:58:44 +08:00
update
This commit is contained in:
parent
e2ecd2f35a
commit
1295f64896
File diff suppressed because one or more lines are too long
@ -420,7 +420,8 @@ if(DisableIndex!=-1){
|
|||||||
bean(), //京豆查询
|
bean(), //京豆查询
|
||||||
//jdCash(), //领现金
|
//jdCash(), //领现金
|
||||||
GetJoyRuninginfo(), //汪汪赛跑
|
GetJoyRuninginfo(), //汪汪赛跑
|
||||||
queryScores()
|
queryScores(),
|
||||||
|
getek()
|
||||||
])
|
])
|
||||||
|
|
||||||
await showMsg();
|
await showMsg();
|
||||||
@ -749,7 +750,7 @@ async function showMsg() {
|
|||||||
ReturnMessage += `【特价金币】${$.JDtotalcash}币(≈${($.JDtotalcash / 10000).toFixed(2)}元)\n`;
|
ReturnMessage += `【特价金币】${$.JDtotalcash}币(≈${($.JDtotalcash / 10000).toFixed(2)}元)\n`;
|
||||||
}
|
}
|
||||||
if($.ECardinfo)
|
if($.ECardinfo)
|
||||||
ReturnMessage += `【礼卡余额】${$.ECardinfo}\n`;
|
ReturnMessage += `【E卡 余额】${$.ECardinfo}元\n`;
|
||||||
|
|
||||||
if ($.JoyRunningAmount)
|
if ($.JoyRunningAmount)
|
||||||
ReturnMessage += `【汪汪赛跑】${$.JoyRunningAmount}元\n`;
|
ReturnMessage += `【汪汪赛跑】${$.JoyRunningAmount}元\n`;
|
||||||
@ -2190,6 +2191,39 @@ function checkplus() {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
function getek() {
|
||||||
|
let opt = {
|
||||||
|
url: `https://mygiftcard.jd.com/giftcard/queryChannelUserCard`,
|
||||||
|
//body: `appid=wh5&clientVersion=1.0.0&functionId=wanrentuan_superise_send&body={"channel":2}&area=2_2813_61130_0`,
|
||||||
|
headers: {
|
||||||
|
//'Host': 'api.m.jd.com',
|
||||||
|
'Origin': 'https://o.jd.com',
|
||||||
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
|
'User-Agent': $.UA,
|
||||||
|
'Cookie': cookie
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return new Promise(async (resolve) => {
|
||||||
|
$.get(opt, async (err, resp, data) => {
|
||||||
|
try {
|
||||||
|
if (err) {
|
||||||
|
console.log(`getek请求失败!!!!`)
|
||||||
|
} else {
|
||||||
|
data = JSON.parse(data)
|
||||||
|
if (data.code == 000000) {
|
||||||
|
$.ECardinfo = Number(data.data.totalAmount);
|
||||||
|
} else {
|
||||||
|
console.log(data.msg)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
$.logErr(e, resp)
|
||||||
|
} finally {
|
||||||
|
resolve(data)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
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
Block a user