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

Function taskGetUrl

jd_bean_home.js:458–472  ·  view source on GitHub ↗
(function_id, body)

Source from the content-addressed store, hash-verified

456 })
457}
458function taskGetUrl(function_id, body) {
459 return {
460 url: `${JD_API_HOST}client.action?functionId=${function_id}&body=${escape(JSON.stringify(body))}&appid=ld&clientVersion=9.2.0`,
461 headers: {
462 'Cookie': cookie,
463 'Host': 'api.m.jd.com',
464 'Accept': '*/*',
465 'Connection': 'keep-alive',
466 '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"),
467 'Accept-Language': 'zh-Hans-CN;q=1,en-CN;q=0.9',
468 'Accept-Encoding': 'gzip, deflate, br',
469 'Content-Type': "application/x-www-form-urlencoded"
470 }
471 }
472}
473
474
475function taskUrl(function_id, body) {

Callers 2

hitGroupFunction · 0.70
helpFunction · 0.70

Calls 2

isNodeMethod · 0.45
getdataMethod · 0.45

Tested by

no test coverage detected