mirror of
https://github.com/6dylan6/jdpro.git
synced 2026-04-23 04:44:23 +08:00
Compare commits
2 Commits
f86b59cdb9
...
a321c3cf53
| Author | SHA1 | Date | |
|---|---|---|---|
| a321c3cf53 | |||
| b3f82c98fa |
@@ -317,6 +317,7 @@ if (DisableIndex != -1) {
|
|||||||
TempBaipiao = "";
|
TempBaipiao = "";
|
||||||
strGuoqi = "";
|
strGuoqi = "";
|
||||||
$.wyw_score = '';
|
$.wyw_score = '';
|
||||||
|
$.wb_score = '';
|
||||||
|
|
||||||
console.log(`******开始查询【京东账号${$.index}】${$.nickName || $.UserName}*********`);
|
console.log(`******开始查询【京东账号${$.index}】${$.nickName || $.UserName}*********`);
|
||||||
$.UA = require('./USER_AGENTS').UARAM();
|
$.UA = require('./USER_AGENTS').UARAM();
|
||||||
@@ -400,6 +401,7 @@ if (DisableIndex != -1) {
|
|||||||
//await checkplus();
|
//await checkplus();
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
wanyiwan(),
|
wanyiwan(),
|
||||||
|
wb_info(),
|
||||||
bean(), //京豆查询
|
bean(), //京豆查询
|
||||||
queryScores(),
|
queryScores(),
|
||||||
getek(),
|
getek(),
|
||||||
@@ -846,6 +848,10 @@ async function showMsg() {
|
|||||||
ReturnMessage += `【玩一玩奖票】${$.wyw_score}个`;
|
ReturnMessage += `【玩一玩奖票】${$.wyw_score}个`;
|
||||||
ReturnMessage += `\n`;
|
ReturnMessage += `\n`;
|
||||||
}
|
}
|
||||||
|
if ($.wb_score != '' ) {
|
||||||
|
ReturnMessage += `【汪贝余额】${$.wb_score}${$.wb_expire!=0?'(近7日将过期'+$.wb_expire+')':''}`;
|
||||||
|
ReturnMessage += `\n`;
|
||||||
|
}
|
||||||
if ($.jdCash) {
|
if ($.jdCash) {
|
||||||
ReturnMessage += `【其他信息】`;
|
ReturnMessage += `【其他信息】`;
|
||||||
|
|
||||||
@@ -1235,6 +1241,48 @@ function wanyiwan() {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
function wb_info() {
|
||||||
|
return new Promise(async (resolve) => {
|
||||||
|
const options = {
|
||||||
|
url: `http://api.m.jd.com/functionId=atop_channel_my_score`,
|
||||||
|
body: `appid=jd-super-market&functionId=atop_channel_my_score&client=m&body=%7B%22bizCode%22%3A%22cn_retail_jdsupermarket%22%2C%22scenario%22%3A%22sign%22%2C%22babelChannel%22%3A%22ttt1%22%2C%22isJdApp%22%3A%221%22%2C%22isWx%22%3A%220%22%7D&t=${Date.now()}`,
|
||||||
|
headers: {
|
||||||
|
Cookie: cookie,
|
||||||
|
'content-type': `application/x-www-form-urlencoded`,
|
||||||
|
// 'Accept-Encoding': `gzip,compress,br,deflate`,
|
||||||
|
Origin: `https://pro.m.jd.com`,
|
||||||
|
Referer: `https://pro.m.jd.com/`,
|
||||||
|
'User-Agent': $.UA,
|
||||||
|
},
|
||||||
|
timeout: 30000
|
||||||
|
};
|
||||||
|
$.post(options, (err, resp, data) => {
|
||||||
|
try {
|
||||||
|
if (err) {
|
||||||
|
$.logErr(err);
|
||||||
|
} else {
|
||||||
|
if (data) {
|
||||||
|
data = $.toObj(data);
|
||||||
|
if (data.success) {
|
||||||
|
try{
|
||||||
|
$.wb_score = data.data.floorData.items[0].restScore || 0;
|
||||||
|
$.wb_expire = data.data.floorData.items[0].nexp || 0;
|
||||||
|
} catch{}
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$.log('服务器返回空数据');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
$.logErr(e);
|
||||||
|
}
|
||||||
|
finally {
|
||||||
|
resolve();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
function isLoginByX1a0He() {
|
function isLoginByX1a0He() {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
const options = {
|
const options = {
|
||||||
|
|||||||
Reference in New Issue
Block a user