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'))) {?>