From 6cb7fe9a1ea5ae853a7d32134cb252f528c95eb4 Mon Sep 17 00:00:00 2001 From: cyc Date: Thu, 26 Jul 2018 14:28:39 +0800 Subject: [PATCH 01/11] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=81=AB=E8=BD=A6?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E8=B0=83=E7=94=A8=E6=9C=BA=E5=88=B6=EF=BC=8C?= =?UTF-8?q?30=E5=A4=A9=E5=86=85=E7=9A=84=E6=9F=A5=E8=AF=A2=E5=87=BA?= =?UTF-8?q?=E9=94=99=EF=BC=8C=E4=B8=8D=E4=BD=BF=E7=94=A8=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../third_party/train/controllers/search.php | 34 +++++++++++-------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/application/third_party/train/controllers/search.php b/application/third_party/train/controllers/search.php index dfbebf43..7ac5f7b0 100644 --- a/application/third_party/train/controllers/search.php +++ b/application/third_party/train/controllers/search.php @@ -85,23 +85,27 @@ class search extends CI_Controller{ $this->BIZ_train_model->addOrUpdate($fromStation,$toStation,$search_return); $operate_data = $search_return; }else{ - $cache_train_info = $this->BIZ_train_model->get_train_info($fromStation,$toStation); - if(empty($cache_train_info)){ - log_message('error','TRAIN 查询为空的链接:'.$this->url.'|出错的原因:'.$this->reason.'|缓存为空'); - $operate_data = NULL; - }else{ - $cache_time = $cache_train_info->tpc_datetime; - $now_time = time(); - $differ_time = ($now_time - strtotime($cache_time)) / 86400; - if($differ_time >= 3){ - $this->BIZ_train_model->delete_traincache($fromStation,$toStation); - log_message('error','TRAIN 查询为空的链接:'.$this->url.'|出错的原因:'.$this->reason.'|缓存超时,已经删除'); + if($this->seveth == 'yes'){ + $cache_train_info = $this->BIZ_train_model->get_train_info($fromStation,$toStation); + if(empty($cache_train_info)){ + log_message('error','TRAIN 查询为空的链接:'.$this->url.'|出错的原因:'.$this->reason.'|缓存为空'); $operate_data = NULL; }else{ - $this->cache = 'yes'; - $operate_data = $cache_train_info->tpc_content; - log_message('error','TRAIN 查询为空的链接:'.$this->url.'|出错的原因:'.$this->reason.'|调用缓存号:'.$cache_train_info->tpc_sn.'|缓存生成的时间:'.$cache_train_info->tpc_datetime); - } + $cache_time = $cache_train_info->tpc_datetime; + $now_time = time(); + $differ_time = ($now_time - strtotime($cache_time)) / 86400; + if($differ_time >= 3){ + $this->BIZ_train_model->delete_traincache($fromStation,$toStation); + log_message('error','TRAIN 查询为空的链接:'.$this->url.'|出错的原因:'.$this->reason.'|缓存超时,已经删除'); + $operate_data = NULL; + }else{ + $this->cache = 'yes'; + $operate_data = $cache_train_info->tpc_content; + log_message('error','TRAIN 查询为空的链接:'.$this->url.'|出错的原因:'.$this->reason.'|调用缓存号:'.$cache_train_info->tpc_sn.'|缓存生成的时间:'.$cache_train_info->tpc_datetime); + } + } + }else{ + $operate_data = NULL; } } return $operate_data; From b09c09d64843e3cc78d552680b5951737ea4ea7d Mon Sep 17 00:00:00 2001 From: lyt Date: Thu, 26 Jul 2018 15:59:19 +0800 Subject: [PATCH 02/11] =?UTF-8?q?CHT=20=E4=BF=AE=E6=94=B9=E8=B6=85?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E5=89=8D=E7=BC=80https,=20=E9=BB=98=E8=AE=A4?= =?UTF-8?q?nofollow,=E8=B7=9F=E8=B8=AA=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/kindeditor/kindeditor.js | 6 +++--- js/kindeditor/plugins/link/link.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/js/kindeditor/kindeditor.js b/js/kindeditor/kindeditor.js index b6c39e8e..5a521f49 100644 --- a/js/kindeditor/kindeditor.js +++ b/js/kindeditor/kindeditor.js @@ -3207,9 +3207,9 @@ _extend(KCmd, { var thirdlink=false if (arguments[3] && arguments[3]=='1') { if(url.indexOf("www.chinahighlights.com") < 0 ){ - url='http://www.chinahighlights.com'+url; + url='https://www.chinahighlights.com'+url; } - url ='http://www.chinahighlights.com/redirect.asp?url='+url+'&t=78002'; + url ='https://www.chinahighlights.com/redirect.asp?url='+url+'&t=78002'; thirdlink=true; }; @@ -5780,7 +5780,7 @@ _plugin('core', function(K) { html = html.replace(/class=\"MsoNormal\"/gi, ''); html = html.replace(/file\:\/\/C:/gi, ''); html = html.replace(/

' + '' + - '' + + '' + '' + //跟踪代码 '

' + '' + - '' + + '' + '
' + '', dialog = self.createDialog({ From 586a6c4cd1a3f7f491b8699287faf994d366275d Mon Sep 17 00:00:00 2001 From: lyt Date: Fri, 27 Jul 2018 11:51:49 +0800 Subject: [PATCH 03/11] =?UTF-8?q?=E4=BF=AE=E6=94=B9kindeditor=E6=96=87?= =?UTF-8?q?=E4=BB=B6v?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/views/bootstrap3/header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/views/bootstrap3/header.php b/application/views/bootstrap3/header.php index 4add9b10..1bf173bc 100644 --- a/application/views/bootstrap3/header.php +++ b/application/views/bootstrap3/header.php @@ -6,7 +6,7 @@ 信息平台 - + + + diff --git a/js/kindeditor/kindeditor.js b/js/kindeditor/kindeditor.js index 5a521f49..395f7ea4 100644 --- a/js/kindeditor/kindeditor.js +++ b/js/kindeditor/kindeditor.js @@ -17,7 +17,7 @@ if (!window.console) { if (!console.log) { console.log = function () {}; } -var _VERSION = '4.1.6 (2013-03-24) 20160601', +var _VERSION = '4.1.6 (2013-03-24) 20180725', _ua = navigator.userAgent.toLowerCase(), _IE = _ua.indexOf('msie') > -1 && _ua.indexOf('opera') == -1, _GECKO = _ua.indexOf('gecko') > -1 && _ua.indexOf('khtml') == -1, From 11f4e7870ed109ed508770f5b98a286c35b52adf Mon Sep 17 00:00:00 2001 From: lyt Date: Fri, 27 Jul 2018 12:00:18 +0800 Subject: [PATCH 05/11] =?UTF-8?q?=E4=BF=AE=E6=94=B9kindeditor=E6=96=87?= =?UTF-8?q?=E4=BB=B6v?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/views/bootstrap3/header.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/application/views/bootstrap3/header.php b/application/views/bootstrap3/header.php index 2037038e..1bf173bc 100644 --- a/application/views/bootstrap3/header.php +++ b/application/views/bootstrap3/header.php @@ -5,8 +5,7 @@ 信息平台 - - + From a72cbce9a150aeee763b916574d2faf62ed4b090 Mon Sep 17 00:00:00 2001 From: lyt Date: Mon, 30 Jul 2018 13:52:39 +0800 Subject: [PATCH 06/11] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B6=85=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E9=BB=98=E8=AE=A4=E4=B8=8D=E8=AE=BE=E7=BD=AE=E8=B7=9F?= =?UTF-8?q?=E8=B8=AA=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/views/bootstrap3/header.php | 2 +- js/kindeditor/kindeditor.js | 2 +- js/kindeditor/plugins/link/link.js | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/application/views/bootstrap3/header.php b/application/views/bootstrap3/header.php index 1bf173bc..664cc98d 100644 --- a/application/views/bootstrap3/header.php +++ b/application/views/bootstrap3/header.php @@ -6,7 +6,7 @@ 信息平台 - +