(body,functionId)
| 325 | |
| 326 | |
| 327 | function taskPostClientActionUrl(body,functionId) { |
| 328 | return { |
| 329 | url: `https://api.m.jd.com/client.action?${functionId?`functionId=${functionId}`:``}`, |
| 330 | body: body, |
| 331 | headers: { |
| 332 | '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_500509960_|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', |
| 333 | 'Content-Type':'application/x-www-form-urlencoded', |
| 334 | 'Host':'api.m.jd.com', |
| 335 | 'Origin':'https://joypark.jd.com', |
| 336 | 'Referer':'https://joypark.jd.com/?activityId=LsQNxL7iWDlXUs6cFl-AAg&lng=113.387899&lat=22.512678&sid=4d76080a9da10fbb31f5cd43396ed6cw&un_area=19_1657_52093_0', |
| 337 | 'Cookie': cookie, |
| 338 | } |
| 339 | } |
| 340 | } |
| 341 | function jsonParse(str) { |
| 342 | if (typeof str == "string") { |
| 343 | try { |
no outgoing calls
no test coverage detected