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

Function taskPostUrl

jd_joy.js:1060–1075  ·  view source on GitHub ↗
(url, body, reqSource, Host, ContentType)

Source from the content-addressed store, hash-verified

1058 }
1059}
1060function taskPostUrl(url, body, reqSource, Host, ContentType) {
1061 return {
1062 url: url,
1063 body: body,
1064 headers: {
1065 'Cookie': cookie,
1066 '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"),
1067 'reqSource': reqSource,
1068 'Content-Type': ContentType,
1069 'Host': Host,
1070 'Referer': 'https://jdjoy.jd.com/pet/index',
1071 'Accept-Language': 'zh-cn',
1072 'Accept-Encoding': 'gzip, deflate, br',
1073 }
1074 }
1075}
1076function jsonParse(str) {
1077 if (typeof str == "string") {
1078 try {

Callers 4

followScanFunction · 0.70
scanMarketFunction · 0.70
appScanMarketFunction · 0.70
followShopFunction · 0.70

Calls 2

isNodeMethod · 0.45
getdataMethod · 0.45

Tested by

no test coverage detected