Browse Source

下载页微调整

lizhen_gitee 3 years ago
parent
commit
aec2a59f6a
1 changed files with 6 additions and 0 deletions
  1. 6 0
      application/index/controller/Index.php

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

@@ -47,13 +47,18 @@ class Index extends Frontend
 
     public function index()
     {
+        exit;
         return $this->view->fetch();
     }
 
     /**
+     * app下载页
      * 判断是安卓还是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: https://apps.apple.com/cn/app/%E4%BC%B4%E5%A3%B0%E8%AF%AD%E9%9F%B3/id1556551099");
         }else if(strpos($_SERVER['HTTP_USER_AGENT'], 'Android')){
@@ -67,6 +72,7 @@ class Index extends Frontend
         }
     }
 
+    //基础文章网页
     public function basedata(){
         $key = input('key','');
         if(!$key){