(function_path, body = '', bizCode = 'jxbfd')
| 1522 | } |
| 1523 | |
| 1524 | function 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 | |
| 1542 | function getStk(url) { |
| 1543 | let arr = url.split('&').map(x => x.replace(/.*\?/, "").replace(/=.*/, "")) |
no test coverage detected