(functionId, t, a)
| 425 | // }); |
| 426 | // } |
| 427 | function taskPostUrl(functionId, t, a) { |
| 428 | let o = '', r = ''; |
| 429 | const time = Date.now(); |
| 430 | // if (t === 'getBrowsePrize') { |
| 431 | // o = "07035cabb557f096" + (time + 6 * 1000); |
| 432 | // r = (time + 6 * 1000).toString() |
| 433 | // } else { |
| 434 | // o = "07035cabb557f096" + time; |
| 435 | // r = time.toString(); |
| 436 | // } |
| 437 | o = "07035cabb557f096" + time; |
| 438 | r = time.toString(); |
| 439 | // let t = "/khc/task/doQuestion"; |
| 440 | // let a = "brandId=555555&questionId=2&result=1" |
| 441 | return { |
| 442 | url: `${JD_API_HOST}/${functionId}`, |
| 443 | body: a, |
| 444 | headers: { |
| 445 | Accept: "application/json,text/plain, */*", |
| 446 | "Content-Type": "application/x-www-form-urlencoded", |
| 447 | "Accept-Encoding": "gzip, deflate, br", |
| 448 | "Accept-Language": "zh-cn", |
| 449 | Connection: "keep-alive", |
| 450 | Cookie: cookie, |
| 451 | Host: "guardianstarjd.m.jd.com", |
| 452 | Referer: "https://guardianstarjd.m.jd.com/", |
| 453 | sign: za(a, o, t).toString(), |
| 454 | timestamp: r, |
| 455 | "User-Agent": "jdapp;android;9.4.4;10;3b78ecc3f490c7ba;network/UNKNOWN;model/M2006J10C;addressid/138543439;aid/3b78ecc3f490c7ba;oaid/7d5870c5a1696881;osVer/29;appBuild/85576;psn/3b78ecc3f490c7ba|541;psq/2;uid/3b78ecc3f490c7ba;adk/;ads/;pap/JA2015_311210|9.2.4|ANDROID 10;osv/10;pv/548.2;jdv/0|iosapp|t_335139774|appshare|CopyURL|1606277982178|1606277986;ref/com.jd.lib.personal.view.fragment.JDPersonalFragment;partner/xiaomi001;apprpd/MyJD_Main;Mozilla/5.0 (Linux; Android 10; M2006J10C Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/77.0.3865.120 MQQBrowser/6.2 TBS/045227 Mobile Safari/537.36", |
| 456 | } |
| 457 | } |
| 458 | } |
| 459 | function jsonParse(str) { |
| 460 | if (typeof str == "string") { |
| 461 | try { |
no test coverage detected