lizhen_gitee 11 months ago
parent
commit
e3f288f9c6

+ 0 - 4
application/index/controller/Index.php

@@ -28,14 +28,10 @@ class Index extends Frontend
      * 判断是安卓还是ios
      */
     public function appdownload() {
-        /*$this->view->assign('downurl', config("site.apkurl"));
-        return $this->view->fetch();*/
 
         if(strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone')||strpos($_SERVER['HTTP_USER_AGENT'], 'iPad')){
             header("Location: ".config('site.ios_downurl'));
         }else if(strpos($_SERVER['HTTP_USER_AGENT'], 'Android')){
-            //$host = $_SERVER["REQUEST_SCHEME"]."://".$_SERVER["HTTP_HOST"];
-            //header("Location: ".$host."/index/index/download");
             $this->view->assign('downurl', config("site.android_apkUrl"));
             return $this->view->fetch();
         }else{

+ 1 - 1
application/index/view/index/appdownload.html

@@ -5,7 +5,7 @@
     <meta charset="UTF-8">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <title>TKEN下载</title>
+    <title>珍友APP下载</title>
     <script src="../../assets/js/fontSize.js"></script>
 </head>
 <style>