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

Function getGetRequest

jd_jump.js:412–426  ·  view source on GitHub ↗
(type, body)

Source from the content-addressed store, hash-verified

410
411
412function getGetRequest(type, body) {
413 const url = `https://jdjoy.jd.com/jump/${type}?${body}`;
414 const method = `GET`;
415 const headers = {
416 'Cookie': cookie,
417 'Accept': `*/*`,
418 'Connection': `keep-alive`,
419 'Referer': `https://jdjoy.jd.com/dist/taro/index.html/`,
420 'Accept-Encoding': `gzip, deflate, br`,
421 'Host': `jdjoy.jd.com`,
422 "User-Agent": $.isNode() ? (process.env.JD_USER_AGENT ? process.env.JD_USER_AGENT : (require('./USER_AGENTS').USER_AGENT)) : ($.getdata('JDUA') ? $.getdata('JDUA') : "jdapp;iPhone;9.4.4;14.3;network/4g;Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1"),
423 'Accept-Language': `zh-cn`
424 };
425 return {url: url, method: method, headers: headers};
426}
427
428function getPostRequest(type, body) {
429 const url = `https://jdjoy.jd.com/jump/${type}`;

Callers 8

rewardsFunction · 0.70
domissionFunction · 0.70
throwDiceFunction · 0.70
getBeanRewardsFunction · 0.70
getTaskListFunction · 0.70
receiveFunction · 0.70
getOneJumpInfoFunction · 0.70
getGameListFunction · 0.70

Calls 2

isNodeMethod · 0.45
getdataMethod · 0.45

Tested by

no test coverage detected