From 094805d7960570deeb12d12abefd09a2c2e688c3 Mon Sep 17 00:00:00 2001 From: cyc Date: Mon, 23 Sep 2019 17:06:13 +0800 Subject: [PATCH] =?UTF-8?q?ah=E6=B7=BB=E5=8A=A0=E9=A2=84=E8=A7=88=E5=92=8C?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E8=87=AA=E5=8A=A8=E6=9B=B4=E6=96=B0=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 4 +++- application/views/bootstrap3/information_edit.php | 13 +++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index 3bc803ec..12748951 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -440,7 +440,9 @@ class Information extends CI_Controller $update_info_log = $this->update_cache($ic_url, true); } else if (strcasecmp($site_code, "cht") == 0 && !empty($auto_update_cache)) { $update_info_log = $this->update_cache($ic_url); - } else if (strcasecmp($site_code, "cht") != 0 && strcasecmp($site_code, "gm") != 0) { //非cht站点并且非GM + } else if (strcasecmp($site_code, "ah") == 0 && !empty($auto_update_cache)) { + $update_info_log = $this->update_cache($ic_url); + } else if (strcasecmp($site_code, "cht") != 0 && strcasecmp($site_code, "gm") != 0 && strcasecmp($site_code, "ah") != 0) { //非cht站点并且非GM并且非AH $update_info_log = $this->update_cache($ic_url); } diff --git a/application/views/bootstrap3/information_edit.php b/application/views/bootstrap3/information_edit.php index 5af06dae..0341e261 100644 --- a/application/views/bootstrap3/information_edit.php +++ b/application/views/bootstrap3/information_edit.php @@ -339,6 +339,12 @@ $('#goto_test_page_button').attr("href", site_url + $('#ic_url').val()); return true; } + //ah跳转测试页面 + function goto_ahtest_page() { + var site_url = 'https://www.asiahighlights.com/index.php/information/detail/?no_cache=true&static_html_url='; + $('#goto_test_page_button').attr("href", site_url + $('#ic_url').val()); + return true; + } function goto_test_page_pgr() { var site_url = 'http://192.155.250.125:8011/guide.php/travelguide/guide/?static_html_url='; $('#goto_test_page_button').attr("href", site_url + $('#ic_url').val()); @@ -619,7 +625,10 @@ if ($embody == 1) { ic_sitecode == 'gm') {?> - + + ic_sitecode == 'ah') {?> + + @@ -1443,7 +1452,7 @@ foreach ($author_list as $author_item) { 忽略URL重复
- config->item('site_code'), array('cht', 'gm'))) {?> + config->item('site_code'), array('cht', 'gm','ah'))) {?>