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

Function taskGetClientActionUrl

jd_joy_park.js:393–406  ·  view source on GitHub ↗
(body,functionId)

Source from the content-addressed store, hash-verified

391}
392
393function taskGetClientActionUrl(body,functionId) {
394 return {
395 url: `https://api.m.jd.com/client.action?functionId=${functionId}${body ? `&${body}` : ``}`,
396 // body: body,
397 headers: {
398 'User-Agent': $.user_agent,
399 'Content-Type':'application/x-www-form-urlencoded',
400 'Host':'api.m.jd.com',
401 'Origin':'https://joypark.jd.com',
402 'Referer':'https://joypark.jd.com/?activityId=LsQNxL7iWDlXUs6cFl-AAg&lng=113.388006&lat=22.512549&sid=4d76080a9da10fbb31f5cd43396ed6cw&un_area=19_1657_52093_0',
403 'Cookie': cookie,
404 }
405 }
406}
407
408function jsonParse(str) {
409 if (typeof str == "string") {

Callers 4

getJoyListFunction · 0.85
getGameShopListFunction · 0.85
doJoyMoveFunction · 0.85
doJoyMergeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected