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

Function taskUrl

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

Source from the content-addressed store, hash-verified

473
474
475function taskUrl(function_id, body) {
476 body["version"] = "9.0.0.1";
477 body["monitor_source"] = "plant_app_plant_index";
478 body["monitor_refer"] = "";
479 return {
480 url: JD_API_HOST,
481 body: `functionId=${function_id}&body=${escape(JSON.stringify(body))}&appid=ld&client=apple&area=5_274_49707_49973&build=167283&clientVersion=9.1.0`,
482 headers: {
483 'Cookie': cookie,
484 'Host': 'api.m.jd.com',
485 'Accept': '*/*',
486 'Connection': 'keep-alive',
487 '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"),
488 'Accept-Language': 'zh-Hans-CN;q=1,en-CN;q=0.9',
489 'Accept-Encoding': 'gzip, deflate, br',
490 'Content-Type': "application/x-www-form-urlencoded"
491 }
492 }
493}
494
495function TotalBean() {
496 return new Promise(async resolve => {

Callers 5

doTask2Function · 0.70
getUserInfoFunction · 0.70
getTaskListFunction · 0.70
receiveTaskFunction · 0.70
awardFunction · 0.70

Calls 2

isNodeMethod · 0.45
getdataMethod · 0.45

Tested by

no test coverage detected