MCPcopy Create free account
hub / github.com/Semporia/Scripts / getBackupInfo

Function getBackupInfo

jd_joy.js:844–874  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

842}
843//查询应援团信息API
844function getBackupInfo() {
845 return new Promise(resolve => {
846 // const url = `${JD_API_HOST}/combat/getBackupInfo`;
847 const host = `jdjoy.jd.com`;
848 const reqSource = 'h5';
849 let opt = {
850 url: "//jdjoy.jd.com/common/pet/combat/getBackupInfo?reqSource=h5&invokeKey=Oex5GmEuqGep1WLC",
851 // url: "//draw.jdfcloud.com/common/pet/getPetTaskConfig?reqSource=h5",
852 method: "GET",
853 data: {},
854 credentials: "include",
855 header: {"content-type": "application/json"}
856 }
857 const url = "https:"+ taroRequest(opt)['url']
858 $.get(taskUrl(url, host, reqSource), (err, resp, data) => {
859 try {
860 if (err) {
861 console.log('\n京东宠汪汪: API查询请求失败 ‼️‼️')
862 } else {
863 // console.log('查询应援团信息API',(data))
864 // $.appGetPetTaskConfigRes = JSON.parse(data);
865 $.getBackupInfoResult = JSON.parse(data);
866 }
867 } catch (e) {
868 $.logErr(e, resp);
869 } finally {
870 resolve();
871 }
872 })
873 })
874}
875//查询赛跑获得多少积分
876function getWinCoin() {
877 return new Promise(resolve => {

Callers 1

joinTwoPeopleRunFunction · 0.85

Calls 5

taroRequestFunction · 0.70
taskUrlFunction · 0.70
getMethod · 0.45
logMethod · 0.45
logErrMethod · 0.45

Tested by

no test coverage detected