mirror of
https://github.com/6dylan6/jdpro.git
synced 2026-05-03 19:33:05 +08:00
1
This commit is contained in:
+5
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+35
-2
@@ -337,6 +337,7 @@ if(DisableIndex!=-1){
|
|||||||
|
|
||||||
console.log(`******开始查询【京东账号${$.index}】${$.nickName || $.UserName}*********`);
|
console.log(`******开始查询【京东账号${$.index}】${$.nickName || $.UserName}*********`);
|
||||||
$.UA = require('./USER_AGENTS').UARAM();
|
$.UA = require('./USER_AGENTS').UARAM();
|
||||||
|
await checkplus();
|
||||||
await TotalBean();
|
await TotalBean();
|
||||||
//await TotalBean2();
|
//await TotalBean2();
|
||||||
if ($.beanCount == 0) {
|
if ($.beanCount == 0) {
|
||||||
@@ -414,7 +415,7 @@ if(DisableIndex!=-1){
|
|||||||
|
|
||||||
await getjdfruitinfo(); //东东农场
|
await getjdfruitinfo(); //东东农场
|
||||||
await $.wait(1000);
|
await $.wait(1000);
|
||||||
|
await checkplus();
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
cash(), //特价金币
|
cash(), //特价金币
|
||||||
bean(), //京豆查询
|
bean(), //京豆查询
|
||||||
@@ -1143,7 +1144,7 @@ function TotalBean() {
|
|||||||
}
|
}
|
||||||
if (data['retcode'] === 0) {
|
if (data['retcode'] === 0) {
|
||||||
$.nickName = (data['base'] && data['base'].nickname) || $.UserName;
|
$.nickName = (data['base'] && data['base'].nickname) || $.UserName;
|
||||||
$.isPlusVip=data['isPlusVip'];
|
//$.isPlusVip=data['isPlusVip'];
|
||||||
$.isRealNameAuth=data['isRealNameAuth'];
|
$.isRealNameAuth=data['isRealNameAuth'];
|
||||||
$.beanCount=(data['base'] && data['base'].jdNum) || 0 ;
|
$.beanCount=(data['base'] && data['base'].jdNum) || 0 ;
|
||||||
$.JingXiang = (data['base'] && data['base'].jvalue) || 0 ;
|
$.JingXiang = (data['base'] && data['base'].jvalue) || 0 ;
|
||||||
@@ -2158,6 +2159,38 @@ function dwappexpire() {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
function checkplus() {
|
||||||
|
let opt = {
|
||||||
|
url: `https://api.m.jd.com/api?functionId=user_getUserInfo_v2`,
|
||||||
|
body: 'appid=plus_business&loginType=2&loginWQBiz=&scval=&body=%7B%22contentType%22%3A%221_2_3_4_5_8_9_11_12_16%22%2C%22qids%22%3A%226_2_5_18_1_7_9_11_12_14_16_17_25_38%22%2C%22checkLevel%22%3A1%2C%22signType%22%3A1003%7D',
|
||||||
|
headers: {
|
||||||
|
'User-Agent': $.UA,
|
||||||
|
'Cookie': cookie,
|
||||||
|
'Origin': 'https://plus.m.jd.com'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return new Promise(async (resolve) => {
|
||||||
|
$.post(opt, async (err, resp, data) => {
|
||||||
|
try {
|
||||||
|
if (err) {
|
||||||
|
console.log(`${JSON.stringify(err)}`)
|
||||||
|
console.log(` API请求失败,请检查网路重试`)
|
||||||
|
} else {
|
||||||
|
data = JSON.parse(data)
|
||||||
|
if (data.code == 1711000) {
|
||||||
|
$.isPlusVip = data.rs.plusUserBaseInfo.endDays ? true : false;
|
||||||
|
//console.log($.isPlusVip)
|
||||||
|
} else {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
$.logErr(e, resp);
|
||||||
|
} finally {
|
||||||
|
resolve();
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
function area() {
|
function area() {
|
||||||
let i = getRand(1, 30)
|
let i = getRand(1, 30)
|
||||||
let o = getRand(70, 3000)
|
let o = getRand(70, 3000)
|
||||||
|
|||||||
Reference in New Issue
Block a user