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

Function JXNC_taskurl

jd_get_share_code.js:176–190  ·  view source on GitHub ↗
(function_path, body)

Source from the content-addressed store, hash-verified

174 const JXNC_API_HOST = "https://wq.jd.com/";
175
176 function JXNC_taskurl(function_path, body) {
177 return {
178 url: `${JXNC_API_HOST}cubeactive/farm/${function_path}?${body}&farm_jstoken=&phoneid=&timestamp=&sceneval=2&g_login_type=1&_=${Date.now()}&g_ty=ls`,
179 headers: {
180 Cookie: cookie,
181 Accept: `*/*`,
182 Connection: `keep-alive`,
183 Referer: `https://st.jingxi.com/pingou/dream_factory/index.html`,
184 'Accept-Encoding': `gzip, deflate, br`,
185 Host: `wq.jd.com`,
186 'Accept-Language': `zh-cn`,
187 "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")
188 },
189 };
190 }
191
192 return new Promise(resolve => {
193 $.get(

Callers 1

getJxNcFunction · 0.85

Calls 2

isNodeMethod · 0.45
getdataMethod · 0.45

Tested by

no test coverage detected