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

Function getGetRequest

jd_jxmc.js:394–408  ·  view source on GitHub ↗
(type, url)

Source from the content-addressed store, hash-verified

392}
393
394function 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
410function decrypt(time, stk, type, url) {
411 stk = stk || (url ? getUrlData(url, '_stk') : '')

Callers 1

takeGetRequestFunction · 0.70

Calls 2

isNodeMethod · 0.45
getdataMethod · 0.45

Tested by

no test coverage detected