(showInvite = true)
| 569 | } |
| 570 | //财富岛 |
| 571 | function getCFD(showInvite = true) { |
| 572 | function taskUrl(function_path, body) { |
| 573 | return { |
| 574 | 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`, |
| 575 | headers: { |
| 576 | Cookie: cookie, |
| 577 | Accept: "*/*", |
| 578 | Connection: "keep-alive", |
| 579 | Referer:"https://st.jingxi.com/fortune_island/index.html?ptag=138631.26.55", |
| 580 | "Accept-Encoding": "gzip, deflate, br", |
| 581 | Host: "m.jingxi.com", |
| 582 | "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`, |
| 583 | "Accept-Language": "zh-cn", |
| 584 | }, |
| 585 | }; |
| 586 | } |
| 587 | return new Promise(async (resolve) => { |
| 588 | $.get(taskUrl(`user/QueryUserInfo`), (err, resp, data) => { |
| 589 | try { |
| 590 | const { |
| 591 | iret, |
| 592 | SceneList = {}, |
| 593 | XbStatus: { XBDetail = [], dwXBRemainCnt } = {}, |
| 594 | ddwMoney, |
| 595 | dwIsNewUser, |
| 596 | sErrMsg, |
| 597 | strMyShareId, |
| 598 | strPin, |
| 599 | } = JSON.parse(data); |
| 600 | console.log(`【京东账号${$.index}(${$.UserName})财富岛】${strMyShareId}`) |
| 601 | } catch (e) { |
| 602 | $.logErr(e, resp); |
| 603 | } finally { |
| 604 | resolve(); |
| 605 | } |
| 606 | }); |
| 607 | }); |
| 608 | } |
| 609 | //领现金 |
| 610 | function getJdCash() { |
| 611 | function taskUrl(functionId, body = {}) { |
no test coverage detected