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

Function taskPostClientActionUrl

jd_joypark_open.js:239–252  ·  view source on GitHub ↗
(body,functionId)

Source from the content-addressed store, hash-verified

237
238
239function taskPostClientActionUrl(body,functionId) {
240 return {
241 url: `https://api.m.jd.com/client.action?${functionId?`functionId=${functionId}`:``}`,
242 body: body,
243 headers: {
244 'User-Agent':'jdltapp;iPhone;3.5.6;14.6;eac3e15e91fd380664fc7c788e8ab6a07805646d;network/4g;ADID/8F6CAEEA-5BF7-4F7E-86C3-A641C19CA832;hasUPPay/0;pushNoticeIsOpen/0;lang/zh_CN;model/iPhone13,2;addressid/1995295948;hasOCPay/0;appBuild/1070;supportBestPay/0;pv/41.26;apprpd/;ref/JDLTSubMainPageViewController;psq/2;ads/;psn/eac3e15e91fd380664fc7c788e8ab6a07805646d|112;jdv/0|kong|t_1000509960_|jingfen|bb9c79e4c4174521873879a27a707da4|1625071927291|1625071930;adk/;app_device/IOS;pap/JA2020_3112531|3.5.6|IOS 14.6;Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1',
245 'Content-Type':'application/x-www-form-urlencoded',
246 'Host':'api.m.jd.com',
247 'Origin':'https://joypark.jd.com',
248 'Referer':'https://joypark.jd.com/?activityId=LsQNxL7iWDlXUs6cFl-AAg&lng=113.387899&lat=22.512678&sid=4d76080a9da10fbb31f5cd43396ed6cw&un_area=19_1657_52093_0',
249 'Cookie': cookie,
250 }
251 }
252}
253function jsonParse(str) {
254 if (typeof str == "string") {
255 try {

Callers 5

getTaskListFunction · 0.70
getJoyBaseInfoFunction · 0.70
apDoTaskFunction · 0.70
apTaskDetailFunction · 0.70
apTaskDrawAwardFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected