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

Function taskUrl

jd_factory_component.js:349–368  ·  view source on GitHub ↗
(function_path, body, stk)

Source from the content-addressed store, hash-verified

347}
348
349function taskUrl(function_path, body, stk) {
350 let url = `${JD_API_HOST}dreamfactory/${function_path}?zone=dream_factory&sceneval=2&g_login_type=1&&_time=${Date.now()}&_=${Date.now()}&${body}`
351 url += `&h5st=${decrypt(Date.now(), stk, '', url)}`;
352 if (stk) {
353 url += `&_stk=${stk}`;
354 }
355 return {
356 url,
357 headers: {
358 Cookie: $.currentCookie,
359 Accept: `*/*`,
360 Connection: `keep-alive`,
361 Referer: `https://wqsd.jd.com/pingou/dream_factory/index.html?jxsid=16064615029143314965&exchange=&ptag=139045.1.2&from_source=outer&jump_rd=17088.24.47&deepLink=1`,
362 'Accept-Encoding': `gzip, deflate, br`,
363 Host: `wq.jd.com`,
364 'User-Agent': `jdpingou;iPhone;3.15.2;14.2.1;ea00763447803eb0f32045dcba629c248ea53bb3;network/3g;model/iPhone13,2;appBuild/100365;ADID/00000000-0000-0000-0000-000000000000;supportApplePay/1;hasUPPay/0;pushNoticeIsOpen/0;hasOCPay/0;supportBestPay/0;session/4;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`,
365 'Accept-Language': `zh-cn`,
366 },
367 };
368}
369
370function taskStroyUrl(function_path, body) {
371 return {

Callers 4

getUserInfoFunction · 0.70
getFriendsFunction · 0.70
pickUserComponentsFunction · 0.70
pickUpComponentFunction · 0.70

Calls 1

decryptFunction · 0.70

Tested by

no test coverage detected