(body,functionId)
| 391 | } |
| 392 | |
| 393 | function 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 | |
| 408 | function jsonParse(str) { |
| 409 | if (typeof str == "string") { |
no outgoing calls
no test coverage detected