(function_path, body = '', dwEnv = 7)
| 1504 | } |
| 1505 | |
| 1506 | function 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 | |
| 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}` : ''}`; |
no test coverage detected