jd_get_share_code.js 增加获取财富岛邀请码
This commit is contained in:
@@ -1068,10 +1068,10 @@ async function joinLeaderTuan() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function JoinTuan(tuanId) {
|
function JoinTuan(tuanId, stk = '_time,activeId,tuanId') {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
const options = {
|
const options = {
|
||||||
'url': `https://m.jingxi.com/dreamfactory/tuan/JoinTuan?activeId=${escape(tuanActiveId)}&tuanId=${escape(tuanId)}&_time=${Date.now()}&_=${Date.now()}&sceneval=2&g_login_type=1&_ste=1&h5st=${decrypt(Date.now())}`,
|
'url': `https://m.jingxi.com/dreamfactory/tuan/JoinTuan?activeId=${escape(tuanActiveId)}&tuanId=${escape(tuanId)}&_time=${Date.now()}&_=${Date.now()}&sceneval=2&g_login_type=1&_ste=1&h5st=${decrypt(Date.now(), stk)}`,
|
||||||
"headers": {
|
"headers": {
|
||||||
"Accept": "*/*",
|
"Accept": "*/*",
|
||||||
"Accept-Encoding": "gzip, deflate, br",
|
"Accept-Encoding": "gzip, deflate, br",
|
||||||
@@ -1526,7 +1526,7 @@ function jsonParse(str) {
|
|||||||
function decrypt(time, stk, type) {
|
function decrypt(time, stk, type) {
|
||||||
if (stk) {
|
if (stk) {
|
||||||
const random = 'pmUmA8IyRcDp';
|
const random = 'pmUmA8IyRcDp';
|
||||||
const token = ``;
|
const token = `tk01wd4571d58a8nT0tkdXczeW94f5x4qjWs44kcPCTXeWKa2xXY+ZxHaOtbRxmyw6vrIF4RDFwwTUfwy1pIqNE0oyWW`;
|
||||||
const fingerprint = 8410347712257161;
|
const fingerprint = 8410347712257161;
|
||||||
const timestamp = new Date(time).Format("yyyyMMddhhmmssS");
|
const timestamp = new Date(time).Format("yyyyMMddhhmmssS");
|
||||||
const appId = 10001;
|
const appId = 10001;
|
||||||
@@ -1538,8 +1538,8 @@ function decrypt(time, stk, type) {
|
|||||||
})
|
})
|
||||||
const hash2 = $.CryptoJS.HmacSHA256(st, hash1).toString($.CryptoJS.enc.Hex);
|
const hash2 = $.CryptoJS.HmacSHA256(st, hash1).toString($.CryptoJS.enc.Hex);
|
||||||
console.log(`st:${st}\n`)
|
console.log(`st:${st}\n`)
|
||||||
// console.log(`hash2:${hash2}\n`)
|
// console.log(`hash2:${JSON.stringify(["".concat(timestamp.toString()), "".concat(fingerprint.toString()), "".concat(appId.toString()), "".concat(token), "".concat(hash2)])}\n`)
|
||||||
// console.log(`h5st:${h5st}\n`)
|
console.log(`h5st:${["".concat(timestamp.toString()), "".concat(fingerprint.toString()), "".concat(appId.toString()), "".concat(token), "".concat(hash2)].join(";")}\n`)
|
||||||
return ["".concat(timestamp.toString()), "".concat(fingerprint.toString()), "".concat(appId.toString()), "".concat(token), "".concat(hash2)].join(";")
|
return ["".concat(timestamp.toString()), "".concat(fingerprint.toString()), "".concat(appId.toString()), "".concat(token), "".concat(hash2)].join(";")
|
||||||
} else {
|
} else {
|
||||||
return '20210121201915905;8410347712257161;10001;tk01wa5bd1b5fa8nK2drQ3o3azhyhItRUb1DBNK57SQnGlXj9kmaV/iQlhKdXuz1RME5H/+NboJj8FAS9N+FcoAbf6cB;3c567a551a8e1c905a8d676d69e873c0bc7adbd8277957f90e95ab231e1800f2'
|
return '20210121201915905;8410347712257161;10001;tk01wa5bd1b5fa8nK2drQ3o3azhyhItRUb1DBNK57SQnGlXj9kmaV/iQlhKdXuz1RME5H/+NboJj8FAS9N+FcoAbf6cB;3c567a551a8e1c905a8d676d69e873c0bc7adbd8277957f90e95ab231e1800f2'
|
||||||
|
@@ -574,6 +574,45 @@ async function getSgmh(timeout = 0) {
|
|||||||
},timeout)
|
},timeout)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
//财富岛
|
||||||
|
function getCFD(showInvite = true) {
|
||||||
|
function taskUrl(function_path, body) {
|
||||||
|
return {
|
||||||
|
url: `https://m.jingxi.com/jxcfd/${function_path}?strZone=jxcfd&bizCode=jxcfd&source=jxcfd&dwEnv=7&_cfd_t=${Date.now()}&ptag=138631.26.55&${body}&_ste=1&_=${Date.now()}&sceneval=2&g_login_type=1&g_ty=ls`,
|
||||||
|
headers: {
|
||||||
|
Cookie: cookie,
|
||||||
|
Accept: "*/*",
|
||||||
|
Connection: "keep-alive",
|
||||||
|
Referer:"https://st.jingxi.com/fortune_island/index.html?ptag=138631.26.55",
|
||||||
|
"Accept-Encoding": "gzip, deflate, br",
|
||||||
|
Host: "m.jingxi.com",
|
||||||
|
"User-Agent":`jdpingou;iPhone;3.15.2;14.2.1;ea00763447803eb0f32045dcba629c248ea53bb3;network/wifi;model/iPhone13,2;appBuild/100365;ADID/00000000-0000-0000-0000-000000000000;supportApplePay/1;hasUPPay/0;pushNoticeIsOpen/0;hasOCPay/0;supportBestPay/0;session/${Math.random * 98 + 1};pap/JA2015_311210;brand/apple;supportJDSHWK/1;Mozilla/5.0 (iPhone; CPU iPhone OS 14_2_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148`,
|
||||||
|
"Accept-Language": "zh-cn",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return new Promise(async (resolve) => {
|
||||||
|
$.get(taskUrl(`user/QueryUserInfo`), (err, resp, data) => {
|
||||||
|
try {
|
||||||
|
const {
|
||||||
|
iret,
|
||||||
|
SceneList = {},
|
||||||
|
XbStatus: { XBDetail = [], dwXBRemainCnt } = {},
|
||||||
|
ddwMoney,
|
||||||
|
dwIsNewUser,
|
||||||
|
sErrMsg,
|
||||||
|
strMyShareId,
|
||||||
|
strPin,
|
||||||
|
} = JSON.parse(data);
|
||||||
|
console.log(`【账号${$.index}(${$.nickName || $.UserName})财富岛】${strMyShareId}`)
|
||||||
|
} catch (e) {
|
||||||
|
$.logErr(e, resp);
|
||||||
|
} finally {
|
||||||
|
resolve();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
async function getShareCode() {
|
async function getShareCode() {
|
||||||
console.log(`======账号${$.index}开始======`)
|
console.log(`======账号${$.index}开始======`)
|
||||||
await getJdFactory()
|
await getJdFactory()
|
||||||
@@ -585,6 +624,7 @@ async function getShareCode() {
|
|||||||
await getJdZZ()
|
await getJdZZ()
|
||||||
await getJoy()
|
await getJoy()
|
||||||
await getSgmh()
|
await getSgmh()
|
||||||
|
await getCFD()
|
||||||
console.log(`======账号${$.index}结束======\n`)
|
console.log(`======账号${$.index}结束======\n`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user