猫了个咪一级.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. js:
  2. let d = [];
  3. let bodys = {
  4. "access_token": "",
  5. "cate_id": MY_CATE,
  6. "identifier": "ffffffff-c67a-899b-ffff-ffffef05ac4a",
  7. "page": MY_PAGE,
  8. "region": 0,
  9. "type_id": 0,
  10. "vip": 0,
  11. "year": ""
  12. };
  13. // print(input);
  14. // print(bodys);
  15. var fn = rc('maomi_aes.js');
  16. bodys = fn.En(stringify(bodys));
  17. // print(bodys);
  18. let obj = {
  19. headers: {
  20. 'Content-Type': 'application/x-www-form-urlencoded',
  21. },
  22. method: 'POST',
  23. // body: 'params=' + bodys + '&version=26&sign=' + CryptoJS.MD5('QEBBQADSwrXIXaNqBmMofjfRY/8Sxaxgparams' + bodys + 'version26QEBBQADSwrXIXaNqBmMofjfRY/8Sxaxg')
  24. body: 'params=' + bodys + '&version=26&sign=' + md5('QEBBQADSwrXIXaNqBmMofjfRY/8Sxaxgparams' + bodys + 'version26QEBBQADSwrXIXaNqBmMofjfRY/8Sxaxg')
  25. };
  26. // print(obj);
  27. let api = input.split('#')[0];
  28. let html = JSON.parse(fn.De(request(api, obj)));
  29. // print(html);
  30. html.data.data.forEach(function (it){
  31. d.push({
  32. title:it.name,
  33. img:it.image,
  34. desc:it.rate,
  35. url:api.replace('index','detail')+';'+it.id
  36. });
  37. });
  38. setResult(d);