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

Function taskUrl

jd_joy.js:1044–1059  ·  view source on GitHub ↗
(url, Host, reqSource)

Source from the content-addressed store, hash-verified

1042 })
1043}
1044function taskUrl(url, Host, reqSource) {
1045 return {
1046 url: url,
1047 headers: {
1048 'Cookie': cookie,
1049 // 'reqSource': reqSource,
1050 'Host': Host,
1051 'Connection': 'keep-alive',
1052 'Content-Type': 'application/json',
1053 'Referer': 'https://jdjoy.jd.com/pet/index',
1054 '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"),
1055 'Accept-Language': 'zh-cn',
1056 'Accept-Encoding': 'gzip, deflate, br',
1057 }
1058 }
1059}
1060function taskPostUrl(url, body, reqSource, Host, ContentType) {
1061 return {
1062 url: url,

Callers 13

getDeskGoodDetailsFunction · 0.70
getFoodFunction · 0.70
enterRoomFunction · 0.70
appGetPetTaskConfigFunction · 0.70
feedPetsFunction · 0.70
getPetTaskConfigFunction · 0.70
getPetRaceFunction · 0.70
getRankListFunction · 0.70
runMatchFunction · 0.70
getBackupInfoFunction · 0.70
getWinCoinFunction · 0.70
receiveJoyRunAwardFunction · 0.70

Calls 2

isNodeMethod · 0.45
getdataMethod · 0.45

Tested by

no test coverage detected