(function_id, body = body)
| 261 | } |
| 262 | |
| 263 | function taskPostUrl(function_id, body = body) { |
| 264 | return { |
| 265 | url: `https://api.m.jd.com/client.action?functionId=${function_id}`, |
| 266 | body: body, |
| 267 | headers: { |
| 268 | 'Host': 'api.m.jd.com', |
| 269 | 'content-type': 'application/x-www-form-urlencoded', |
| 270 | 'accept': '*/*', |
| 271 | 'user-agent': 'JD4iPhone/167408 (iPhone; iOS 14.2; Scale/3.00)', |
| 272 | 'accept-language': 'zh-Hans-JP;q=1, en-JP;q=0.9, zh-Hant-TW;q=0.8, ja-JP;q=0.7, en-US;q=0.6', |
| 273 | //"Cookie": cookie, |
| 274 | } |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | function taskUrl(function_id, body = {}) { |
| 279 | return { |
nothing calls this directly
no outgoing calls
no test coverage detected