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

Function taskurl

jd_mohe.js:492–505  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

490 })
491}
492function taskurl(url) {
493 return {
494 'url': `${JD_API_HOST}/active/${url}`,
495 'headers': {
496 "accept": "*/*",
497 "accept-encoding": "gzip, deflate, br",
498 "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
499 "content-type": "application/x-www-form-urlencoded",
500 "cookie": cookie,
501 "referer": "https://isp5g.m.jd.com",
502 "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")
503 }
504 }
505}
506function updateShareCodesCDN(url) {
507 return new Promise(resolve => {
508 $.get({

Callers 12

addShareFunction · 0.70
confFunction · 0.70
homeGoBrowseFunction · 0.70
taskHomeCoinFunction · 0.70
getCoinFunction · 0.70
taskListFunction · 0.70
browseProductFunction · 0.70
strollActiveFunction · 0.70
strollShopFunction · 0.70
strollMemberFunction · 0.70
taskCoinFunction · 0.70
coinFunction · 0.70

Calls 2

isNodeMethod · 0.45
getdataMethod · 0.45

Tested by

no test coverage detected