From 3e1767955cf79143280b563c5ad556ba07e8cf0b Mon Sep 17 00:00:00 2001 From: LMR <59361885@qq.com> Date: Wed, 4 Mar 2026 10:02:17 +0800 Subject: [PATCH] helper add gh_gm --- application/config/config.php | 1 + application/helpers/info_helper.php | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/application/config/config.php b/application/config/config.php index 6778664d..a9f86625 100644 --- a/application/config/config.php +++ b/application/config/config.php @@ -588,6 +588,7 @@ $config['cache']['hlyen']['cache_path'] = 'D:\wwwcache\mobile-first\chiangmaiyip if (isset($_SERVER['HTTP_HOST']) && $_SERVER['HTTP_HOST'] == '202.103.68.62:9999') { $config['site']['jp']['site_url'] = 'http://202.103.68.62:9093'; $config['site']['gm']['site_url'] = 'http://202.103.68.62:9094'; + $config['site']['gm_jp']['site_url'] = 'http://202.103.68.62:9904'; $config['site']['vc']['site_url'] = 'http://202.103.68.62:9095'; $config['site']['vac']['site_url'] = 'http://202.103.68.62:9096'; $config['site']['ru']['site_url'] = 'http://202.103.68.62:9097'; diff --git a/application/helpers/info_helper.php b/application/helpers/info_helper.php index 008b9183..f0af6681 100644 --- a/application/helpers/info_helper.php +++ b/application/helpers/info_helper.php @@ -77,7 +77,7 @@ function is_series_site() { $CI = &get_instance(); $sitecode = $CI->config->item('site_code'); - if (in_array($sitecode, array('jp', 'vc', 'vac', 'ru', 'it', 'gh_jp', 'gh_vc', 'gh_vac', 'gh_ru', 'gh_it', 'gh_gm', 'gm'))) { + if (in_array($sitecode, array('jp', 'vc', 'vac', 'ru', 'it', 'gh_jp', 'gh_vc', 'gh_vac', 'gh_ru', 'gh_it', 'gh_gm', 'gm', 'gm_jp'))) { return true; } else { return false; @@ -103,7 +103,7 @@ function is_mobile_first() { $CI = &get_instance(); $sitecode = $CI->config->item('site_code'); - if ($sitecode == 'ch' || $sitecode == 'ah' || $sitecode == 'htravel' || $sitecode == 'chinatravel' || $sitecode == 'gh' || $sitecode == 'jh' || $sitecode == 'thailand' || $sitecode == 'shanghai' || $sitecode=='beijing' || $sitecode == "trainspread" || $sitecode=="guilin" || $sitecode=="hly" || $sitecode=="hlyen") { + if ($sitecode == 'ch' || $sitecode == 'ah' || $sitecode == 'htravel' || $sitecode == 'chinatravel' || $sitecode == 'gh' || $sitecode == 'jh' || $sitecode == 'thailand' || $sitecode == 'shanghai' || $sitecode == 'beijing' || $sitecode == "trainspread" || $sitecode == "guilin" || $sitecode == "hly" || $sitecode == "hlyen") { return true; } else { return false; @@ -376,4 +376,4 @@ function replace_image_url($ic_content) { $CI = &get_instance(); return str_replace($CI->config->item('media_image_url'), $CI->config->item('site_image_url'), $ic_content); -} \ No newline at end of file +}