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

Function taskUrl

jd_cfd_loop.js:321–338  ·  view source on GitHub ↗
(function_path, body)

Source from the content-addressed store, hash-verified

319}
320
321function taskUrl(function_path, body) {
322 let url = `${JD_API_HOST}jxbfd/${function_path}?strZone=jxbfd&bizCode=jxbfd&source=jxbfd&dwEnv=7&_cfd_t=${Date.now()}&ptag=138631.26.55&${body}&_stk=_cfd_t%2CbizCode%2CddwTaskId%2CdwEnv%2Cptag%2Csource%2CstrShareId%2CstrZone&_ste=1`;
323 url += `&h5st=${decrypt(Date.now(), '', '', url)}&_=${Date.now() + 2}&sceneval=2&g_login_type=1&g_ty=ls`;
324 return {
325 url,
326 headers: {
327 Cookie: cookie,
328 Accept: "*/*",
329 Connection: "keep-alive",
330 Referer:"https://st.jingxi.com/fortune_island/index.html?ptag=138631.26.55",
331 "Accept-Encoding": "gzip, deflate, br",
332 Host: "m.jingxi.com",
333 "User-Agent":`jdpingou;iPhone;3.15.2;14.2.1;ea00763447803eb0f32045dcba629c248ea53bb3;network/wifi;model/iPhone13,2;appBuild/100365;ADID/00000000-0000-0000-0000-000000000000;supportApplePay/1;hasUPPay/0;pushNoticeIsOpen/0;hasOCPay/0;supportBestPay/0;session/${Math.random * 98 + 1};pap/JA2015_311210;brand/apple;supportJDSHWK/1;Mozilla/5.0 (iPhone; CPU iPhone OS 14_2_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148`,
334 "Accept-Language": "zh-cn",
335 },
336 timeout: 10000
337 };
338}
339
340function taskListUrl(function_path, body, bizCode = 'jxbfd') {
341 let url = `${JD_API_HOST}newtasksys/newtasksys_front/${function_path}?strZone=jxbfd&bizCode=${bizCode}&source=jxbfd&dwEnv=7&_cfd_t=${Date.now()}&ptag=138631.26.55&${body}&_stk=_cfd_t%2CbizCode%2CconfigExtra%2CdwEnv%2Cptag%2Csource%2CstrZone%2CtaskId&_ste=1`;

Callers 6

querystorageroomFunction · 0.70
sellgoodsFunction · 0.70
queryshellFunction · 0.70
pickshellFunction · 0.70
speedUpFunction · 0.70
getUserInfoFunction · 0.70

Calls 1

decryptFunction · 0.70

Tested by

no test coverage detected