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

Function taskUrl

jd_cfd.js:1506–1522  ·  view source on GitHub ↗
(function_path, body = '', dwEnv = 7)

Source from the content-addressed store, hash-verified

1504}
1505
1506function taskUrl(function_path, body = '', dwEnv = 7) {
1507 let url = `${JD_API_HOST}jxbfd/${function_path}?strZone=jxbfd&bizCode=jxbfd&source=jxbfd&dwEnv=${dwEnv}&_cfd_t=${Date.now()}&ptag=7155.9.47${body ? `&${body}` : ''}`;
1508 url += `&_stk=${getStk(url)}`;
1509 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`;
1510 return {
1511 url,
1512 headers: {
1513 "Host": "m.jingxi.com",
1514 "Accept": "*/*",
1515 "Accept-Encoding": "gzip, deflate, br",
1516 "User-Agent": UA,
1517 "Accept-Language": "zh-CN,zh-Hans;q=0.9",
1518 "Referer": "https://st.jingxi.com/",
1519 "Cookie": cookie
1520 }
1521 }
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}` : ''}`;

Callers 15

GetPropCardCenterInfoFunction · 0.70
UsePropCardFunction · 0.70
TreasureHuntFunction · 0.70
specialUserOperFunction · 0.70
collectorOperFunction · 0.70
mermaidOperFunction · 0.70
querystorageroomFunction · 0.70
sellgoodsFunction · 0.70
getTakeAggrPageFunction · 0.70
rewardSignFunction · 0.70
helpdrawFunction · 0.70
queryRubbishInfoFunction · 0.70

Calls 2

getStkFunction · 0.85
decryptFunction · 0.70

Tested by

no test coverage detected