| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <script src="axios.min.js"></script>
- <script src="cordova.js"></script>
- <title>绿洲宇宙</title>
- </head>
- <body>
- <script>
- let flag = new URLSearchParams(location.search).get('flag') || localStorage.getItem('flag');
- function padding(s, num) {
- return ('00000000000000' + s).slice(-num);
- }
- let date = new Date();
- let dateFlag = date.getFullYear() + padding(date.getMonth() + 1, 2) + padding(date.getDate(), 2);
- dateFlag = new Date().getTime();
- if (flag === '1') {
- console.log('set flag 1');
- localStorage.setItem('flag', flag);
- location.href = 'https://www.raex.vip';
- }
- var version = '1.0.2';
- var iosCFBundleVersion = '177';
- var androidVersionCode = '1234';
- document.addEventListener('deviceready', function () {
- axios.get('https://www.raex.vip/appVersion/getVersion?version=' + version + '&platform=' + cordova.platformId)
- .then(function (res) {
- if (res.data.review) {
- if ('ios' === cordova.platformId) {
- location.href = 'https://ios.raex.vip?review=true&dateFlag=' + dateFlag;
- } else {
- location.href = 'https://www.raex.vip?review=true&dateFlag=' + dateFlag;
- }
- } else {
- location.href = 'https://www.raex.vip?dateFlag=' + dateFlag;
- }
- })
- .catch(function (e) {
- location.href = 'https://www.raex.vip?dateFlag=' + dateFlag;
- });
- });
- </script>
- </body>
- </html>
|