From c17c1c8c7fa0833a519a0e477f2161906f8cc7c8 Mon Sep 17 00:00:00 2001 From: ljl Date: Tue, 27 Sep 2022 15:05:00 +0800 Subject: [PATCH] yh --- Application/Home/Controller/HomeController.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Application/Home/Controller/HomeController.class.php b/Application/Home/Controller/HomeController.class.php index c7546df41..3bdafb7e7 100644 --- a/Application/Home/Controller/HomeController.class.php +++ b/Application/Home/Controller/HomeController.class.php @@ -27,10 +27,10 @@ class HomeController extends Controller protected function _initialize() { - if (stripos($_SERVER['HTTP_HOST'], C('DOMAIN_DOWNLOAD', null, '')) === 0) { + if (stripos(C('DOMAIN_DOWNLOAD', null, ''), $_SERVER['HTTP_HOST']) !== false) { if ( - strtolower(MODULE_NAME) != 'home' && - strtolower(CONTROLLER_NAME) != 'home' && + strtolower(MODULE_NAME) != 'home' || + strtolower(CONTROLLER_NAME) != 'home' || strtolower(ACTION_NAME) != 'landingpage') { header('HTTP/1.1 404 Not Found'); exit('404 找不到页面!'); @@ -333,7 +333,7 @@ class HomeController extends Controller $ssgUrl = $downloadDomain . '/mobile.php/Ssg/pay/game_id/' . $game['id'] . '/promote_id/' . $promoteId; - if(in_array($game['id'], [191, 192, 247, 248, 307, 308])) { + if(in_array($game['id'], [191, 192, 247, 248, 307, 308, 286, 279])) { $game['relation_game_name'] = '九灵神域'; } if(in_array($game['id'], [239, 240])) {