index.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <script src="axios.min.js"></script>
  8. <title>绿洲宇宙</title>
  9. </head>
  10. <body>
  11. <script>
  12. let flag = new URLSearchParams(location.search).get('flag') || localStorage.getItem('flag');
  13. if (flag === '1') {
  14. console.log('set flag 1');
  15. localStorage.setItem('flag', flag);
  16. location.href = 'https://www.raex.vip';
  17. }
  18. var version = '1.0.0';
  19. var iosCFBundleVersion = '1';
  20. var androidVersionCode = '41';
  21. if (/iphone|ipod|ipad|Macintosh/i.test(navigator.userAgent)) {
  22. axios.get('https://www.raex.vip/appVersion/checkIosReview?version=' + version)
  23. .then(function (res) {
  24. if (res.data.review) {
  25. location.href = 'index1.html';
  26. } else {
  27. location.href = 'https://www.raex.vip';
  28. }
  29. })
  30. .catch(function (e) {
  31. location.href = 'https://www.raex.vip';
  32. });
  33. } else {
  34. axios.get('https://www.raex.vip/appVersion/checkAndroidReview?version=' + version)
  35. .then(function (res) {
  36. if (res.data.review) {
  37. location.href = 'https://www.raex.vip/9th/?review=true';
  38. } else {
  39. location.href = 'https://www.raex.vip';
  40. }
  41. })
  42. .catch(function (e) {
  43. location.href = 'https://www.raex.vip';
  44. });
  45. }
  46. </script>
  47. </body>
  48. </html>