From 31a5971439f1f2baf0f038486b4107ae885fac03 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Wed, 27 Nov 2019 15:04:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/HomeController.class.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Application/Home/Controller/HomeController.class.php b/Application/Home/Controller/HomeController.class.php index 2944e711a..97d6a27b6 100644 --- a/Application/Home/Controller/HomeController.class.php +++ b/Application/Home/Controller/HomeController.class.php @@ -205,18 +205,19 @@ class HomeController extends Controller } $game['flooring_page_imgs'] = $imageUrls; + $isNewIos = false; + if ($gameSource['create_time'] > strtotime(date('2019-11-27 00:00:00'))) { + $isNewIos = true; + } + $downloadUrl = ''; - if ($isIOS13) { + if (!$isNewIos && $isIOS13) { $downloadUrl = 'itms-services://?action=download-manifest&url=' . Request::getHost() . ltrim($gameSource['org_plist_url'], '.'); } else { $applyService = new ApplyService(); $downloadUrl = $applyService->getDownloadUrl($apply); } - $isNewIos = false; - if ($gameSource['create_time'] > strtotime(date('2019-11-27 00:00:00'))) { - $isNewIos = true; - } $this->assign('isNewIos', $isNewIos); $this->assign('downloadUrl', $downloadUrl); $this->assign('isIOS13', $isIOS13);