|
|
@ -27,10 +27,10 @@ class HomeController extends Controller
|
|
|
|
|
|
|
|
|
|
|
|
protected function _initialize()
|
|
|
|
protected function _initialize()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (stripos($_SERVER['HTTP_HOST'], C('DOMAIN_DOWNLOAD', null, '')) === 0) {
|
|
|
|
if (stripos(C('DOMAIN_DOWNLOAD', null, ''), $_SERVER['HTTP_HOST']) !== false) {
|
|
|
|
if (
|
|
|
|
if (
|
|
|
|
strtolower(MODULE_NAME) != 'home' &&
|
|
|
|
strtolower(MODULE_NAME) != 'home' ||
|
|
|
|
strtolower(CONTROLLER_NAME) != 'home' &&
|
|
|
|
strtolower(CONTROLLER_NAME) != 'home' ||
|
|
|
|
strtolower(ACTION_NAME) != 'landingpage') {
|
|
|
|
strtolower(ACTION_NAME) != 'landingpage') {
|
|
|
|
header('HTTP/1.1 404 Not Found');
|
|
|
|
header('HTTP/1.1 404 Not Found');
|
|
|
|
exit('404 找不到页面!');
|
|
|
|
exit('404 找不到页面!');
|
|
|
@ -333,7 +333,7 @@ class HomeController extends Controller
|
|
|
|
|
|
|
|
|
|
|
|
$ssgUrl = $downloadDomain . '/mobile.php/Ssg/pay/game_id/' . $game['id'] . '/promote_id/' . $promoteId;
|
|
|
|
$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'] = '九灵神域';
|
|
|
|
$game['relation_game_name'] = '九灵神域';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(in_array($game['id'], [239, 240])) {
|
|
|
|
if(in_array($game['id'], [239, 240])) {
|
|
|
|