diff --git a/Application/Home/Controller/HomeController.class.php b/Application/Home/Controller/HomeController.class.php index 5a0a198ad..b40b6ac1b 100644 --- a/Application/Home/Controller/HomeController.class.php +++ b/Application/Home/Controller/HomeController.class.php @@ -231,7 +231,30 @@ class HomeController extends Controller $this->assign('promoteId', $promoteId); $cur_url = base64_encode(base64_encode("http://" . $_SERVER['HTTP_HOST'] . __SELF__)); $this->assign('cur_url', $cur_url); - $this->display('landingPage'); + if ($this->get_device_type() == 'ios') { + $this->display('landingPage'); + } else { + $this->display('landingPage2'); + } + + } + + private function get_device_type() + { + //全部变成小写字母 + $agent = strtolower($_SERVER['HTTP_USER_AGENT']); + $type = 'other'; + //分别进行判断 + if(strpos($agent, 'iphone') || strpos($agent, 'ipad')) + { + $type = 'ios'; + } + + if(strpos($agent, 'android')) + { + $type = 'android'; + } + return $type; } diff --git a/Application/Home/View/default/Home/landingPage2.html b/Application/Home/View/default/Home/landingPage2.html new file mode 100644 index 000000000..2a31f76fb --- /dev/null +++ b/Application/Home/View/default/Home/landingPage2.html @@ -0,0 +1,134 @@ + + + + + + + + + + + + + {$game['relation_game_name']} + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
+ + + + + \ No newline at end of file