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

Function taskListUrl

jd_cfd.js:1524–1540  ·  view source on GitHub ↗
(function_path, body = '', bizCode = 'jxbfd')

Source from the content-addressed store, hash-verified

1522}
1523
1524function taskListUrl(function_path, body = '', bizCode = 'jxbfd') {
1525 let url = `${JD_API_HOST}newtasksys/newtasksys_front/${function_path}?strZone=jxbfd&bizCode=${bizCode}&source=jxbfd&dwEnv=7&_cfd_t=${Date.now()}&ptag=7155.9.47${body ? `&${body}` : ''}`;
1526 url += `&_stk=${getStk(url)}`;
1527 url += `&_ste=1&h5st=${decrypt(Date.now(), '', '', url)}&_=${Date.now() + 2}&sceneval=2&g_login_type=1&callback=jsonpCBK${String.fromCharCode(Math.floor(Math.random() * 26) + "A".charCodeAt(0))}&g_ty=ls`;
1528 return {
1529 url,
1530 headers: {
1531 "Host": "m.jingxi.com",
1532 "Accept": "*/*",
1533 "Accept-Encoding": "gzip, deflate, br",
1534 "User-Agent": UA,
1535 "Accept-Language": "zh-CN,zh-Hans;q=0.9",
1536 "Referer": "https://st.jingxi.com/",
1537 "Cookie": cookie
1538 }
1539 }
1540}
1541
1542function getStk(url) {
1543 let arr = url.split('&').map(x => x.replace(/.*\?/, "").replace(/=.*/, ""))

Callers 4

awardActTaskFunction · 0.70
getTaskListFunction · 0.70
doTaskFunction · 0.70
awardTaskFunction · 0.70

Calls 2

getStkFunction · 0.85
decryptFunction · 0.70

Tested by

no test coverage detected