新增trainspread网站

master
赵鹏 1 year ago
parent be9c75a1fd
commit 5971470bad

@ -426,6 +426,7 @@ $config['site'] = array(
'trippest' => array('site_code' => 'trippest', 'site_id' => 145, 'site_lgc' => '1', 'site_image_url' => '', 'site_url' => 'https://www.trippest.com', 'site_authors' => array('cj'), 'site_user' => array(',ycc,zp,')), 'trippest' => array('site_code' => 'trippest', 'site_id' => 145, 'site_lgc' => '1', 'site_image_url' => '', 'site_url' => 'https://www.trippest.com', 'site_authors' => array('cj'), 'site_user' => array(',ycc,zp,')),
'shanghai' => array('site_code' => 'shanghai', 'site_id' => 96, 'site_lgc' => '107', 'site_url' => 'http://www.shanghaihighlights.com/', 'site_image_url' => 'https://images.shanghaihighlights.com', 'site_authors' => array('ll', 'D'), 'site_user' => ',ycc,vz,bhn,J,wj,ll,D,ZP,lyy,'), 'shanghai' => array('site_code' => 'shanghai', 'site_id' => 96, 'site_lgc' => '107', 'site_url' => 'http://www.shanghaihighlights.com/', 'site_image_url' => 'https://images.shanghaihighlights.com', 'site_authors' => array('ll', 'D'), 'site_user' => ',ycc,vz,bhn,J,wj,ll,D,ZP,lyy,'),
'beijing' => array('site_code' => 'beijing', 'site_id' => 98, 'site_lgc' => '106', 'site_url' => 'http://www.mybeijingchina.com/', 'site_image_url' => 'https://images.mybeijingchina.com', 'site_authors' => array('ll', 'D'), 'site_user' => ',ycc,vz,bhn,J,wj,ll,D,ZP,lyy,'), 'beijing' => array('site_code' => 'beijing', 'site_id' => 98, 'site_lgc' => '106', 'site_url' => 'http://www.mybeijingchina.com/', 'site_image_url' => 'https://images.mybeijingchina.com', 'site_authors' => array('ll', 'D'), 'site_user' => ',ycc,vz,bhn,J,wj,ll,D,ZP,lyy,'),
'trainspread' => array('site_code' => 'trainspread', 'site_id' => 149, 'site_lgc' => '1', 'site_url' => 'http://www.trainspread.com/', 'site_image_url' => 'https://images.trainspread.com', 'site_authors' => array('ll', 'D'), 'site_user' => ',ycc,vz,bhn,J,wj,ll,D,ZP,lyy,'),
); );
//静态文件生成路径 //静态文件生成路径
@ -762,6 +763,7 @@ $config['css_source_ct'] = 'https://data.chinatravel.com/css/min.php?f=/css/css3
$config['css_source_chinatravel'] = 'https://data.chinatravel.com/css/newcss3/base.css'; $config['css_source_chinatravel'] = 'https://data.chinatravel.com/css/newcss3/base.css';
$config['css_source_shanghai'] = 'https://data.shanghaihighlights.com/css/css3/base.css'; $config['css_source_shanghai'] = 'https://data.shanghaihighlights.com/css/css3/base.css';
$config['css_source_beijing'] = 'https://www.mybeijingchina.com/css/css3/base.css'; $config['css_source_beijing'] = 'https://www.mybeijingchina.com/css/css3/base.css';
$config['css_source_trainspread'] = 'https://data.trainspread.com/css/css3/base.css';
$config['css_source_ts'] = 'https://www.trainspread.com/css/bootstrap.min.css'; $config['css_source_ts'] = 'https://www.trainspread.com/css/bootstrap.min.css';
//静态文件生成路径 //静态文件生成路径
@ -778,6 +780,7 @@ $config['cache']['gh']['cache_path'] = 'D:\wwwcache\globalhighlights.com';
$config['cache']['chinatravel']['cache_path'] = 'D:\wwwcache\mobile-first\chinatravel.com'; $config['cache']['chinatravel']['cache_path'] = 'D:\wwwcache\mobile-first\chinatravel.com';
$config['cache']['shanghai']['cache_path'] = 'D:\wwwcache\mobile-first\shanghaihighlights.com'; $config['cache']['shanghai']['cache_path'] = 'D:\wwwcache\mobile-first\shanghaihighlights.com';
$config['cache']['beijing']['cache_path'] = 'D:\wwwcache\mobile-first\mybeijingchina.com'; $config['cache']['beijing']['cache_path'] = 'D:\wwwcache\mobile-first\mybeijingchina.com';
$config['cache']['trainspread']['cache_path'] = 'D:\wwwcache\mobile-first\trainspread.com';
//静态文件更新接口 //静态文件更新接口
$config['cache']['jp']['cache_api'] = '/info.php/information/update_cache/'; $config['cache']['jp']['cache_api'] = '/info.php/information/update_cache/';

@ -731,6 +731,9 @@ class Information extends CI_Controller
} else if (strcasecmp($site_code, "beijing") == 0 && !empty($auto_update_cache)) { } else if (strcasecmp($site_code, "beijing") == 0 && !empty($auto_update_cache)) {
$information_new = $this->Information_model->Detail($this->input->post('is_id')); $information_new = $this->Information_model->Detail($this->input->post('is_id'));
$this->make_www_cache_bj($information_new); $this->make_www_cache_bj($information_new);
} else if (strcasecmp($site_code, "trainspread") == 0 && !empty($auto_update_cache)) {
$information_new = $this->Information_model->Detail($this->input->post('is_id'));
$this->make_www_cache_ts($information_new);
} else if (strcasecmp($site_code, "cht") == 0 && !empty($auto_update_cache)) { } else if (strcasecmp($site_code, "cht") == 0 && !empty($auto_update_cache)) {
$update_info_log = $this->update_cache($ic_url); $update_info_log = $this->update_cache($ic_url);
} else if (strcasecmp($site_code, "ah") == 0 && !empty($auto_update_cache)) { } else if (strcasecmp($site_code, "ah") == 0 && !empty($auto_update_cache)) {
@ -825,6 +828,8 @@ class Information extends CI_Controller
$this->make_www_cache_sh($information); $this->make_www_cache_sh($information);
} else if ($this->config->item('site_code') == 'beijing') { } else if ($this->config->item('site_code') == 'beijing') {
$this->make_www_cache_bj($information); $this->make_www_cache_bj($information);
} else if ($this->config->item('site_code') == 'trainspread') {
$this->make_www_cache_ts($information);
} else if ($this->config->item('site_code') == 'gh') { } else if ($this->config->item('site_code') == 'gh') {
$this->make_www_cache_gh('pc', $information, $recommand_information); $this->make_www_cache_gh('pc', $information, $recommand_information);
$this->make_www_cache_gh('mobile', $information, $recommand_information); $this->make_www_cache_gh('mobile', $information, $recommand_information);
@ -3619,6 +3624,13 @@ class Information extends CI_Controller
} }
/**
* TrainSpread网站静态化
*/
public function make_www_cache_ts($information){
}
//通过内容找到第一张图片 //通过内容找到第一张图片
public function set_photo_content($ic_photo, $ic_content) public function set_photo_content($ic_photo, $ic_content)
{ {

@ -103,7 +103,7 @@ function is_mobile_first()
{ {
$CI = &get_instance(); $CI = &get_instance();
$sitecode = $CI->config->item('site_code'); $sitecode = $CI->config->item('site_code');
if ($sitecode == 'ch' || $sitecode == 'ah' || $sitecode == 'chinatravel' || $sitecode == 'gh' || $sitecode == 'shanghai' || $sitecode=='beijing') { if ($sitecode == 'ch' || $sitecode == 'ah' || $sitecode == 'chinatravel' || $sitecode == 'gh' || $sitecode == 'shanghai' || $sitecode=='beijing' || $sitecode == "trainspread") {
return true; return true;
} else { } else {
return false; return false;

@ -842,7 +842,7 @@ if (!empty($setting_website_nav)) {
</div> </div>
</div> </div>
<?php if ($information->ic_sitecode == 'chinatravel' || $information->ic_sitecode == 'shanghai' || $information->ic_sitecode == 'beijing') { <?php if ($information->ic_sitecode == 'chinatravel' || $information->ic_sitecode == 'shanghai' || $information->ic_sitecode == 'beijing' || $information->ic_sitecode == 'trainspread') {
?> ?>
<div> <div>
<div class="col-sm-8"> <div class="col-sm-8">
@ -2505,7 +2505,7 @@ foreach ($author_list as $author_item) {
<input type="checkbox" name="ignore_url_check" id="ignore_url_check" />忽略URL重复 <input type="checkbox" name="ignore_url_check" id="ignore_url_check" />忽略URL重复
</label> </label>
<div class="clearfix"></div> <div class="clearfix"></div>
<?php if (in_array($this->config->item('site_code'), array('ch', 'cht', 'gm', 'ah', 'gh', 'ct', 'chinatravel', 'shanghai', 'beijing'))) {?> <?php if (in_array($this->config->item('site_code'), array('ch', 'cht', 'gm', 'ah', 'gh', 'ct', 'chinatravel', 'shanghai', 'beijing','trainspread'))) {?>
<label class="checkbox col-xs-24" style="font-weight: normal;margin-top:0;padding-left: 21px;"> <label class="checkbox col-xs-24" style="font-weight: normal;margin-top:0;padding-left: 21px;">
<input type="checkbox" name="auto_update_cache_checkbox" id="auto_update_cache_checkbox" <input type="checkbox" name="auto_update_cache_checkbox" id="auto_update_cache_checkbox"
onclick="get_update_cache_url();" value="<?php echo $information->ic_url; ?>" />静态更新 onclick="get_update_cache_url();" value="<?php echo $information->ic_url; ?>" />静态更新

@ -26,7 +26,7 @@
<?php } ?> <?php } ?>
</div> </div>
<div class="col-md-16"> <div class="col-md-16">
<?php if ($this->config->item("site_code")=="chinatravel" || $this->config->item("site_code")=="shanghai" || $this->config->item("site_code")=="beijing" ){ ?> <?php if ($this->config->item("site_code")=="chinatravel" || $this->config->item("site_code")=="shanghai" || $this->config->item("site_code")=="beijing" || $this->config->item("site_code")=="trainspread" ){ ?>
<div class="row"> <div class="row">
<div class="col-md-24"> <div class="col-md-24">
<div class="panel panel-default"> <div class="panel panel-default">

@ -88,6 +88,9 @@
case 'beijing': case 'beijing':
$media_site_code = 'beijing'; $media_site_code = 'beijing';
break; break;
case 'trainspread':
$media_site_code = 'trainspread';
break;
default: default:
$media_site_code = 'ch'; $media_site_code = 'ch';
} }

@ -13,3 +13,5 @@
} }
</script> </script>
//还需要服务器上面就进行mklin具体设置在插件wysiwyg的ckfinder里面有说明文档

@ -22,3 +22,6 @@ mklink /D "D:\wwwroot-ct\uploader-file\shanghai\pic" "D:\wwwroot-ct\shanghaihigh
//beijing //beijing
mklink /D "D:\wwwroot-ct\uploader-file\beijing\image" "D:\wwwroot-ct\mybeijingchina.com\images" mklink /D "D:\wwwroot-ct\uploader-file\beijing\image" "D:\wwwroot-ct\mybeijingchina.com\images"
mklink /D "D:\wwwroot-ct\uploader-file\beijing\pic" "D:\wwwroot-ct\mybeijingchina.com\pic" mklink /D "D:\wwwroot-ct\uploader-file\beijing\pic" "D:\wwwroot-ct\mybeijingchina.com\pic"
//trainspread
mklink /D "D:\wwwroot-ct\uploader-file\trainspread\image" "D:\wwwroot-ct\origin-www.trainspread.com\images"
Loading…
Cancel
Save