diff --git a/application/config/config.php b/application/config/config.php index 9f8398dd..dfdb653d 100644 --- a/application/config/config.php +++ b/application/config/config.php @@ -430,6 +430,7 @@ $config['site'] = [ 'trainspread' => ['site_code' => 'trainspread', 'site_id' => 149, 'site_lgc' => '1', 'site_url' => 'https://www.trainspread.com', 'site_image_url' => 'https://images.trainspread.com', 'site_authors' => ['ll', 'D'], 'site_user' => ',ycc,vz,bhn,J,wj,ll,D,ZP,lyy,'], 'guilin' => ['site_code' => 'guilin', 'site_id' => 90, 'site_lgc' => '103', 'site_url' => 'https://www.guilinchina.net/', 'site_image_url' => 'https://images.guilinchina.net', 'site_authors' => ['ll', 'D'], 'site_user' => ',ycc,vz,bhn,J,wj,ll,D,ZP,lyy,'], 'hly' => ['site_code' => 'hly', 'site_id' => 151, 'site_lgc' => '2', 'site_url' => 'https://www.hualiyingtravel.com/', 'site_image_url' => 'https://images.hualiyingtravel.com', 'site_authors' => ['ll', 'D'], 'site_user' => ',ycc,vz,bhn,J,wj,ll,D,ZP,lyy,'], + 'hlyen' => ['site_code' => 'hlyen', 'site_id' => 151, 'site_lgc' => '1', 'site_url' => 'https://www.chiangmaiyipengfestival.com/', 'site_image_url' => 'https://images.chiangmaiyipengfestival.com', 'site_authors' => ['ll', 'D'], 'site_user' => ',ycc,vz,bhn,J,wj,ll,D,ZP,lyy,'], 'cht' => ['site_code' => 'cht', 'site_id' => 14, 'site_lgc' => '1', 'site_url' => 'https://www.chinahighlights.com', 'site_image_url' => 'https://images.chinahighlights.com', 'site_authors' => ['zzy', 'spt', 'yl', 'gavin', 'sw', 'zl', 'wbl', 'yqw', 'lf', 'zhm', 'pkl'], 'site_user' => ',ycc,lmr, zyh,J,shw,B,zzy,WJJ,Tony,pcf,zxy,wst,wz,v,S,yyg,yxd,wj,sw,yl,hx,spt,wmr,zl,syt,gavin,zm,htc,yqw,bhn,lmj,wbl,yqw,LYY,zhm,si'], ]; @@ -572,6 +573,8 @@ $config['cache']['beijing']['cache_path'] = 'D:\wwwcache\mobile-first\mybeijingc $config['cache']['trainspread']['cache_path'] = 'D:\wwwcache\mobile-first\trainspread.com'; $config['cache']['guilin']['cache_path'] = 'D:\wwwcache\mobile-first\guilinchina.net'; $config['cache']['hly']['cache_path'] = 'D:\wwwcache\mobile-first\hualiyingtravel.com'; +$config['cache']['hlyen']['cache_path'] = 'D:\wwwcache\mobile-first\chiangmaiyipengfestival.com'; + //本地测试用 - lmr if (isset($_SERVER['HTTP_HOST']) && $_SERVER['HTTP_HOST'] == '202.103.68.62:9999') { diff --git a/application/helpers/info_helper.php b/application/helpers/info_helper.php index b165469f..3ce6fd2c 100644 --- a/application/helpers/info_helper.php +++ b/application/helpers/info_helper.php @@ -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 == 'shanghai' || $sitecode=='beijing' || $sitecode == "trainspread" || $sitecode=="guilin" || $sitecode=="hly") { + if ($sitecode == 'ch' || $sitecode == 'ah' || $sitecode == 'htravel' || $sitecode == 'chinatravel' || $sitecode == 'gh' || $sitecode == 'jh' || $sitecode == 'shanghai' || $sitecode=='beijing' || $sitecode == "trainspread" || $sitecode=="guilin" || $sitecode=="hly" || $sitecode=="hlyen") { return true; } else { return false; diff --git a/application/third_party/ctmobilefirst/controllers/api.php b/application/third_party/ctmobilefirst/controllers/api.php index ba145a12..6bee84b4 100644 --- a/application/third_party/ctmobilefirst/controllers/api.php +++ b/application/third_party/ctmobilefirst/controllers/api.php @@ -407,6 +407,15 @@ class Api extends CI_Controller { 'imagesUrl'=>'www.hualiyingtravel.com', ]; + $hlyen = [ + 'dei_sn' => '31', + 'LGC' =>'1', + 'WebCode'=>'hlyen', + 'WebUrl'=>'www.chiangmaiyipengfestival.com', + 'WebCdn'=>'www.chiangmaiyipengfestival.com', + 'imagesUrl'=>'www.chiangmaiyipengfestival.com', + ]; + $localeMap = [ 'chinatravel' => $chinatravel, @@ -415,6 +424,7 @@ class Api extends CI_Controller { 'trainspread' => $trainspread, 'guilin' =>$guilin, 'hly' =>$hly, + 'hlyen' =>$hlyen, ]; if (isset($_GET["webcode"])){ diff --git a/application/views/bootstrap3/information_edit.php b/application/views/bootstrap3/information_edit.php index 094a55d4..4ee2ea8c 100644 --- a/application/views/bootstrap3/information_edit.php +++ b/application/views/bootstrap3/information_edit.php @@ -825,7 +825,7 @@ - config->item('site_code'), ['ct', 'chinatravel', 'shanghai', 'beijing', 'trainspread', 'guilin', 'hly'])) { + config->item('site_code'), ['ct', 'chinatravel', 'shanghai', 'beijing', 'trainspread', 'guilin', 'hly','hlyen'])) { ?>