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

Function taskUrl

jd_jxnc.js:667–687  ·  view source on GitHub ↗
(function_path, body, stk)

Source from the content-addressed store, hash-verified

665
666
667function taskUrl(function_path, body, stk) {
668 let url = `${JXNC_API_HOST}cubeactive/farm/${function_path}?${body}&farm_jstoken=${currentToken['farm_jstoken']}&phoneid=${currentToken['phoneid']}&timestamp=${currentToken['timestamp']}&sceneval=2&g_login_type=1&callback=whyour&_=${Date.now()}&g_ty=ls`;
669 url += `&h5st=${decrypt(Date.now(), stk || '', '', url)}`
670 if (stk) {
671 url += `&_stk=${encodeURIComponent(stk)}`;
672 }
673 return {
674 url,
675 headers: {
676 Cookie: currentCookie,
677 Accept: `*/*`,
678 Connection: `keep-alive`,
679 Referer: `https://st.jingxi.com/pingou/dream_factory/index.html`,
680 'Accept-Encoding': `gzip, deflate, br`,
681 Host: `wq.jd.com`,
682 'Accept-Language': `zh-cn`,
683 "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")
684 },
685 timeout: 10000,
686 };
687}
688
689async function showMsg() {
690 if (notifyBool) {

Callers 4

getTaskListFunction · 0.70
answerTaskFunction · 0.70
helpShareCodeFunction · 0.70
doTaskFunction · 0.70

Calls 3

decryptFunction · 0.70
isNodeMethod · 0.45
getdataMethod · 0.45

Tested by

no test coverage detected