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

Function taskUrl

jd_xtg_help.js:470–491  ·  view source on GitHub ↗
(function_id)

Source from the content-addressed store, hash-verified

468 }
469}
470function taskUrl(function_id) {
471 let r = Date.now().toString();
472 let hi = "07035cabb557f096";
473 let o = hi + r;
474 let t = function_id;
475 let a = `t=${r}&starId=${$.activeId}`;
476 return {
477 url: `${JD_API_HOST}/${function_id}?t=${r}&starId=${$.activeId}`,
478 headers: {
479 Accept: "application/json,text/plain, */*",
480 "Accept-Encoding": "gzip, deflate, br",
481 "Accept-Language": "zh-cn",
482 Connection: "keep-alive",
483 Cookie: cookie,
484 Host: "urvsaggpt.m.jd.com",
485 Referer: "https://guardianstarjd.m.jd.com/",
486 sign: za(a, o, t).toString(),
487 timestamp: r,
488 "User-Agent": "jdapp;android;9.4.4;10;3b78ecc3f490c7ba;network/UNKNOWN;model/M2006J10C;addressid/138543439;aid/3b78ecc3f490c7ba;oaid/7d5870c5a1696881;osVer/29;appBuild/85576;psn/3b78ecc3f490c7ba|541;psq/2;uid/3b78ecc3f490c7ba;adk/;ads/;pap/JA2015_311210|9.2.4|ANDROID 10;osv/10;pv/548.2;jdv/0|iosapp|t_335139774|appshare|CopyURL|1606277982178|1606277986;ref/com.jd.lib.personal.view.fragment.JDPersonalFragment;partner/xiaomi001;apprpd/MyJD_Main;Mozilla/5.0 (Linux; Android 10; M2006J10C Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/77.0.3865.120 MQQBrowser/6.2 TBS/045227 Mobile Safari/537.36",
489 },
490 };
491}
492
493// prettier-ignore
494function za(t, e, a) {

Callers

nothing calls this directly

Calls 1

zaFunction · 0.70

Tested by

no test coverage detected