diff --git a/Application/Home/Controller/HomeController.class.php b/Application/Home/Controller/HomeController.class.php index fd37284b9..eea52d404 100644 --- a/Application/Home/Controller/HomeController.class.php +++ b/Application/Home/Controller/HomeController.class.php @@ -243,8 +243,10 @@ class HomeController extends Controller } $serviceQQ = M("config", "sys_")->field('value')->where("name='APP_QQ'")->find()['value']; - $this->assign("serviceQQ", $serviceQQ); + $ssgUrl = C('DOMAIN_OFFICIAL_MOBILE') . '/mobile.php/Ssg/pay/game_id/' . $game['id'] . '/promote_id/' . $promoteId; + + $this->assign("serviceQQ", $serviceQQ); $this->assign('isNewIos', $isNewIos); $this->assign('downloadUrl', $downloadUrl); $this->assign('isIOS13', $isIOS13); @@ -254,6 +256,7 @@ class HomeController extends Controller $this->assign('apply', $apply); $this->assign('game', $game); $this->assign('promoteId', $promoteId); + $this->assign('ssgUrl', $ssgUrl); $cur_url = base64_encode(base64_encode("http://" . $_SERVER['HTTP_HOST'] . __SELF__)); $this->assign('cur_url', $cur_url); if ($isIOS) { diff --git a/Application/Home/View/default/Home/landingPage.html b/Application/Home/View/default/Home/landingPage.html index 1604aab3a..3ebc05bae 100644 --- a/Application/Home/View/default/Home/landingPage.html +++ b/Application/Home/View/default/Home/landingPage.html @@ -273,7 +273,7 @@ -
¥10至尊下载
+
¥10至尊下载
@@ -945,20 +945,16 @@ var PhoneObj = { function is_tip_safari() { - var isTipSafari = false; var ua = navigator.userAgent.toLowerCase(); - if (ua.match(/MicroMessenger/i) == "micromessenger") { - isTipSafari = true; - //$('.safari').show(); - } else if(ua.match(/QQ/i) == "qq") { - isTipSafari = true; - //$('.safari').show(); - } else if(ua.match(/dingtalk/i) == "dingtalk") { - isTipSafari = true; - //$('.safari').show(); + //判断是不是在iPhone的Safair浏览器打开的本页面 + if (ua.indexOf('applewebkit') > -1 && ua.indexOf('mobile') > -1 && ua.indexOf('safari') > -1 && + ua.indexOf('linux') === -1 && ua.indexOf('android') === -1 && ua.indexOf('chrome') === -1 && + ua.indexOf('ios') === -1 && ua.indexOf('browser') === -1) { + return false; } - return isTipSafari; + return true; } + function checkSafari(){ /*var ua = navigator.userAgent.toLowerCase(); if (ua.match(/MicroMessenger/i) == "micromessenger") {