master
ljl 2 years ago
parent 81ec34ed92
commit c17c1c8c7f

@ -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])) {

Loading…
Cancel
Save