Browse Source

新版本提示

shish 4 years ago
parent
commit
4daf04c4e3

+ 9 - 0
app-ghs/controllers/ConsoleController.php

@@ -110,4 +110,13 @@ class ConsoleController extends BaseController
         util::success(['dict' => $dict, 'shop' => $shop]);
     }
 
+    //最新版本 shish 20220211
+    public function actionApkVersion()
+    {
+        $version = getenv('GHS_NEW_APK_VERSION') == false ? '1.0.0' : getenv('GHS_NEW_APK_VERSION');
+        $mustUpdate = getenv('GHS_NEW_APK_VERSION_MUST_UPDATE') == false ? 0 : getenv('GHS_NEW_APK_VERSION_MUST_UPDATE');
+        $downloadVersion = getenv('GHS_NEW_APK_DOWNLOAD_VERSION') == false ? '1_0_0' : getenv('GHS_NEW_APK_DOWNLOAD_VERSION');
+        util::success(['version' => $version, 'mustUpdate' => $mustUpdate,'downloadVersion'=>$downloadVersion]);
+    }
+
 }

+ 9 - 0
app-hd/controllers/ConsoleController.php

@@ -125,4 +125,13 @@ class ConsoleController extends BaseController
         util::success(['dict' => $dict, 'shop' => $shop]);
     }
 
+    //最新版本 shish 20220211
+    public function actionApkVersion()
+    {
+        $version = getenv('HD_NEW_APK_VERSION') == false ? '1.0.0' : getenv('HD_NEW_APK_VERSION');
+        $mustUpdate = getenv('HD_NEW_APK_VERSION_MUST_UPDATE') == false ? 0 : getenv('HD_NEW_APK_VERSION_MUST_UPDATE');
+        $downloadVersion = getenv('HD_NEW_APK_DOWNLOAD_VERSION') == false ? '1_0_0' : getenv('HD_NEW_APK_DOWNLOAD_VERSION');
+        util::success(['version' => $version, 'mustUpdate' => $mustUpdate,'downloadVersion'=>$downloadVersion]);
+    }
+
 }