(type, url)
| 392 | } |
| 393 | |
| 394 | function getGetRequest(type, url) { |
| 395 | const method = `GET`; |
| 396 | let headers = { |
| 397 | 'Origin': `https://st.jingxi.com`, |
| 398 | 'Cookie': $.cookie, |
| 399 | 'Connection': `keep-alive`, |
| 400 | 'Accept': `application/json`, |
| 401 | 'Referer': `https://st.jingxi.com/pingou/jxmc/index.html`, |
| 402 | 'Host': `m.jingxi.com`, |
| 403 | 'User-Agent': $.isNode() ? (process.env.JD_USER_AGENT ? process.env.JD_USER_AGENT : (require('./USER_AGENTS').USER_AGENT)) : ($.getdata('JDUA') ? $.getdata('JDUA') : "jdapp;iPhone;9.4.4;14.3;network/4g;Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1"), |
| 404 | 'Accept-Encoding': `gzip, deflate, br`, |
| 405 | 'Accept-Language': `zh-cn` |
| 406 | }; |
| 407 | return {url: url, method: method, headers: headers}; |
| 408 | } |
| 409 | |
| 410 | function decrypt(time, stk, type, url) { |
| 411 | stk = stk || (url ? getUrlData(url, '_stk') : '') |
no test coverage detected