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

Function taskUrl

jd_gold_creator.js:247–262  ·  view source on GitHub ↗
(function_id, body = {})

Source from the content-addressed store, hash-verified

245 })
246}
247function taskUrl(function_id, body = {}) {
248 return {
249 url: `${JD_API_HOST}?functionId=${function_id}&body=${escape(JSON.stringify(body))}&appid=content_ecology&clientVersion=10.0.0&client=wh5&eufv=false&uuid=`,
250 headers: {
251 "Accept": "*/*",
252 "Accept-Encoding": "gzip, deflate, br",
253 "Accept-Language": "zh-cn",
254 "Connection": "keep-alive",
255 "Content-Type": "application/x-www-form-urlencoded",
256 "Host": "api.m.jd.com",
257 "Referer": "https://h5.m.jd.com/",
258 "Cookie": cookie,
259 "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")
260 }
261 }
262}
263
264function TotalBean() {
265 return new Promise(async resolve => {

Callers 3

goldCreatorTabFunction · 0.70
goldCreatorDetailFunction · 0.70
goldCreatorDoTaskFunction · 0.70

Calls 2

isNodeMethod · 0.45
getdataMethod · 0.45

Tested by

no test coverage detected