| 449 | return $.md5(str); |
| 450 | } |
| 451 | function getScore(fpin) { |
| 452 | console.log("查询" + fpin + "分数"); |
| 453 | return new Promise((resolve) => { |
| 454 | let options = { |
| 455 | "url": "https://pengyougou.m.jd.com/like/jxz/getScore?actId=9&appId=dafbe42d5bff9d82298e5230eb8c3f79&lkEPin=" + fpin, |
| 456 | "headers": { |
| 457 | "Referer": "https://game-cdn.moxigame.cn/ClickEliminate/IntegralPK_jd/thirdapp/index.html?&token=AAFgwYjmADD1CrUNjDlWrIKSUE5xguJH3wmor9ZeStzbDq5cXG2Me0PSQgXJvT5bAgJv_DErW1E&returnurl=https%3A%2F%2Fprodev.m.jd.com%2Fmall%2Factive%2F45njQg88Vym1s2EGp9aV6cPvqecw%2Findex.html%3Ftttparams%3DImfQnGideyJnTG5nIjoiMTE0LjM3OTc2NiIsImdMYXQiOiIzMC42MDE0NzEifQ8%253D%253D%26babelChannel%3Dttt1%26qdsource%3Dapp%26lng%3D114.362856%26lat%3D30.577543%26sid%3Dab2735c8cec04b1db8d32b4f406fef7w%26un_area%3D17_1381_50717_52133%23%2Findex&tttparams=ImfQnGideyJnTG5nIjoiMTE0LjM3OTc2NiIsImdMYXQiOiIzMC42MDE0NzEifQ8%3D%3D&babelChannel=ttt1&lng=114.362856&lat=30.577543&sid=ab2735c8cec04b1db8d32b4f406fef7w&un_area=17_1381_50717_52133&friendPin=109912ce317991bcdcca46aae737b4f2", |
| 458 | "Host": "pengyougou.m.jd.com", |
| 459 | "Content-Type": "application/json", |
| 460 | "Origin": "https://game-cdn.moxigame.cn", |
| 461 | "Connection": "keep-alive", |
| 462 | "Accept": " */*", |
| 463 | "User-Agent": $.isNode() ? (process.env.JD_USER_AGENT ? process.env.JD_USER_AGENT : (require('./USER_AGENTS').USER_AGENT)) : ($.getdata('JDUA') ? $.getdata('JDUA') : "jdapp;iPhone;9.2.2;14.2;%E4%BA%AC%E4%B8%9C/9.2.2 CFNetwork/1206 Darwin/20.1.0"), |
| 464 | "Accept-Encoding": "gzip,deflate,br", |
| 465 | "Accept-Language": "zh-cn", |
| 466 | } |
| 467 | }; |
| 468 | |
| 469 | $.get(options, (err, resp, res) => { |
| 470 | let score = 0; |
| 471 | try { |
| 472 | if (res) { |
| 473 | let data = JSON.parse(res); |
| 474 | if (data) { |
| 475 | score = data.data |
| 476 | } |
| 477 | } |
| 478 | } catch (e) { |
| 479 | console.log(e); |
| 480 | } finally { |
| 481 | resolve(score); |
| 482 | } |
| 483 | }) |
| 484 | }); |
| 485 | } |
| 486 | function randomStr(a) { |
| 487 | console.log("查询randomStr"); |
| 488 | |