xiongzhu 4 роки тому
батько
коміт
ecf045a36e

+ 3 - 2
config.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<widget id="vip.raex.nft" version="1.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" ios-CFBundleIdentifier="com.raex.meta" ios-CFBundleVersion="138" android-versionCode="1116">
-	<name>RAEX绿洲宇宙</name>
+<widget id="vip.raex.nft" version="1.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" ios-CFBundleIdentifier="com.raex.meta" ios-CFBundleVersion="138" android-versionCode="1144">
+	<name>RAEX宇宙</name>
 	<description>
         A sample Apache Cordova application that responds to the deviceready event.
     </description>
@@ -28,6 +28,7 @@
 	<preference name="Orientation" value="portrait"/>
 	<preference name="AutoHideSplashScreen" value="false"/>
 	<preference name="ShowSplashScreenSpinner" value="false"/>
+	<preference name="AndroidXEnabled" value="true"/>
 	<splash src="res/splash/ios/Default@2x~universal~anyany.png"/>
 	<hook src="scripts/deleteDSStore.js" type="before_prepare"/>
 	<hook src="scripts/changeVersion.js" type="before_prepare"/>

BIN
res/icon/android/ic_launcher-web.png


BIN
res/icon/android/mipmap-hdpi/ic_launcher.png


BIN
res/icon/android/mipmap-ldpi/ic_launcher.png


BIN
res/icon/android/mipmap-mdpi/ic_launcher.png


BIN
res/icon/android/mipmap-tvhdpi/ic_launcher.png


BIN
res/icon/android/mipmap-xhdpi/ic_launcher.png


BIN
res/icon/android/mipmap-xxhdpi/ic_launcher.png


BIN
res/icon/android/mipmap-xxxhdpi/ic_launcher.png


BIN
res/splash/android/splash.jpg


BIN
res/splash/android/splash.png


BIN
res/splash/ios/Default@2x~universal~anyany.png


+ 13 - 3
www/index.html

@@ -19,8 +19,8 @@
         }
 
         var version = '1.0.1';
-        var iosCFBundleVersion = '137';
-        var androidVersionCode = '1116';
+        var iosCFBundleVersion = '138';
+        var androidVersionCode = '1143';
         if (/iphone|ipod|ipad|Macintosh/i.test(navigator.userAgent)) {
             axios.get('https://www.raex.vip/appVersion/checkIosReview?version=' + version)
                 .then(function (res) {
@@ -34,7 +34,17 @@
                     location.href = 'https://www.raex.vip';
                 });
         } else {
-            location.href = 'https://www.raex.vip';
+            axios.get('https://www.raex.vip/appVersion/checkAndroidReview?version=' + version)
+                .then(function (res) {
+                    if (res.data.review) {
+                        location.href = 'https://www.raex.vip/9th/?review=true';
+                    } else {
+                        location.href = 'https://www.raex.vip';
+                    }
+                })
+                .catch(function (e) {
+                    location.href = 'https://www.raex.vip';
+                });
         }
     </script>
 </body>

+ 11 - 1
www/template.html

@@ -34,7 +34,17 @@
                     location.href = 'https://www.raex.vip';
                 });
         } else {
-            location.href = 'https://www.raex.vip';
+            axios.get('https://www.raex.vip/appVersion/checkAndroidReview?version=' + version)
+                .then(function (res) {
+                    if (res.data.review) {
+                        location.href = 'https://www.raex.vip/9th/?review=true';
+                    } else {
+                        location.href = 'https://www.raex.vip';
+                    }
+                })
+                .catch(function (e) {
+                    location.href = 'https://www.raex.vip';
+                });
         }
     </script>
 </body>