From 5a24c8a52c5c54b1f7ee0724efc375cb9081da49 Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Tue, 1 Oct 2019 02:53:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=90=BD=E5=9C=B0=E9=A1=B5=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/HomeController.class.php | 2 +- Application/Home/View/default/Home/iosDown.html | 2 -- .../Home/View/default/Home/promitionofregestion.html | 9 +++++---- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Application/Home/Controller/HomeController.class.php b/Application/Home/Controller/HomeController.class.php index 39af05220..db651ae4f 100644 --- a/Application/Home/Controller/HomeController.class.php +++ b/Application/Home/Controller/HomeController.class.php @@ -149,7 +149,7 @@ class HomeController extends Controller } if ($status == 1) { - $downLink = 'itms-services://?action=download-manifest&url=' . 'https://' . C('APPLY_DOWN_DOMAIN') . M('Apply', 'tab_')->where(array('promote_id'=>$promoteId,'game_id'=>$gameId))->getField('original_url'); + $downLink = 'itms-services://?action=download-manifest&url=' . "https://" . $_SERVER["HTTP_HOST"] . M('Apply', 'tab_')->where(array('promote_id'=>$promoteId,'game_id'=>$gameId))->getField('org_plist_url'); } else { $downLink = get_apply_dow_url($gameId, $promoteId); } diff --git a/Application/Home/View/default/Home/iosDown.html b/Application/Home/View/default/Home/iosDown.html index f236be142..251cccd29 100644 --- a/Application/Home/View/default/Home/iosDown.html +++ b/Application/Home/View/default/Home/iosDown.html @@ -120,8 +120,6 @@ setTimeout(function () { var url = "{$downLink}"; - console.log(url); - return false; window.location.href = url; }, 500); } diff --git a/Application/Home/View/default/Home/promitionofregestion.html b/Application/Home/View/default/Home/promitionofregestion.html index f1eafe35d..1f0638980 100644 --- a/Application/Home/View/default/Home/promitionofregestion.html +++ b/Application/Home/View/default/Home/promitionofregestion.html @@ -209,14 +209,15 @@ } } else { if (is_ios()) { - if (!Boolean(navigator.userAgent.match(/OS [1][3]_[1][_\d]* like Mac OS X/i)) && !parseInt("{:I('get.status')}")) { - if (!parseInt("{:I('get.status')}")) { + if (Boolean(navigator.userAgent.match(/OS [1][3]_[1][_\d]* like Mac OS X/i))) { + if (parseInt("{:I('get.status')}") > 0) { + location.href = "{:U('iosDown',array('gid'=>$gameId,'pid'=>I('get.pid'),'status'=>1))}"; + return false; + } else { layer.confirm('请先到官网注册',{title:''} , function () { location.href = "/mobile.php?s=/User/login/pid/" + "{:I('get.pid')}" + "/gid/" + "{:I('get.gid')}" + ".html"; }); return false; - } else { - location.href = "{:U('iosDown',array('gid'=>$gameId,'pid'=>I('get.pid'),'status'=>1))}"; } }