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

Function taskZZUrl

jd_get_share_code.js:327–341  ·  view source on GitHub ↗
(functionId, body = {})

Source from the content-addressed store, hash-verified

325 }
326
327 function taskZZUrl(functionId, body = {}) {
328 return {
329 url: `${JDZZ_API_HOST}?functionId=${functionId}&body=${escape(JSON.stringify(body))}&client=wh5&clientVersion=9.1.0`,
330 headers: {
331 'Cookie': cookie,
332 'Host': 'api.m.jd.com',
333 'Connection': 'keep-alive',
334 'Content-Type': 'application/json',
335 'Referer': 'http://wq.jd.com/wxapp/pages/hd-interaction/index/index',
336 '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"),
337 'Accept-Language': 'zh-cn',
338 'Accept-Encoding': 'gzip, deflate, br',
339 }
340 }
341 }
342
343 await getTaskList()
344}

Callers 1

getTaskListFunction · 0.85

Calls 2

isNodeMethod · 0.45
getdataMethod · 0.45

Tested by

no test coverage detected