lizhen_gitee hace 1 año
padre
commit
e98fb92cf1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      application/index/controller/Index.php

+ 1 - 1
application/index/controller/Index.php

@@ -32,7 +32,7 @@ class Index extends Frontend
         return $this->view->fetch();*/
         return $this->view->fetch();*/
 
 
         if(strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone')||strpos($_SERVER['HTTP_USER_AGENT'], 'iPad')){
         if(strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone')||strpos($_SERVER['HTTP_USER_AGENT'], 'iPad')){
-            header(config('site.ios_downurl'));
+            header("Location: ".config('site.ios_downurl'));
         }else if(strpos($_SERVER['HTTP_USER_AGENT'], 'Android')){
         }else if(strpos($_SERVER['HTTP_USER_AGENT'], 'Android')){
             //$host = $_SERVER["REQUEST_SCHEME"]."://".$_SERVER["HTTP_HOST"];
             //$host = $_SERVER["REQUEST_SCHEME"]."://".$_SERVER["HTTP_HOST"];
             //header("Location: ".$host."/index/index/download");
             //header("Location: ".$host."/index/index/download");