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

Function taskUrl

jd_cash.js:498–512  ·  view source on GitHub ↗
(functionId, body = {})

Source from the content-addressed store, hash-verified

496 return objClone;
497}
498function taskUrl(functionId, body = {}) {
499 return {
500 url: `${JD_API_HOST}?functionId=${functionId}&body=${escape(JSON.stringify(body))}&appid=CashRewardMiniH5Env&appid=9.1.0`,
501 headers: {
502 'Cookie': cookie,
503 'Host': 'api.m.jd.com',
504 'Connection': 'keep-alive',
505 'Content-Type': 'application/json',
506 'Referer': 'http://wq.jd.com/wxapp/pages/hd-interaction/index/index',
507 '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"),
508 'Accept-Language': 'zh-cn',
509 'Accept-Encoding': 'gzip, deflate, br',
510 }
511 }
512}
513
514function getAuthorShareCode(url) {
515 return new Promise(resolve => {

Callers 4

indexFunction · 0.70
helpFriendFunction · 0.70
doTaskFunction · 0.70
getRewardFunction · 0.70

Calls 2

isNodeMethod · 0.45
getdataMethod · 0.45

Tested by

no test coverage detected