jd_get_share_code.js 增加获取财富岛邀请码
This commit is contained in:
@@ -574,6 +574,45 @@ async function getSgmh(timeout = 0) {
|
||||
},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() {
|
||||
console.log(`======账号${$.index}开始======`)
|
||||
await getJdFactory()
|
||||
@@ -585,6 +624,7 @@ async function getShareCode() {
|
||||
await getJdZZ()
|
||||
await getJoy()
|
||||
await getSgmh()
|
||||
await getCFD()
|
||||
console.log(`======账号${$.index}结束======\n`)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user