ah添加预览和关闭自动更新功能

mobile-first
cyc 6 years ago
parent cbee255f1c
commit 094805d796

@ -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);
}

@ -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) {
<?php }?>
<?php if ($information->ic_sitecode == 'gm') {?>
<a href="javascript:void(0);" onclick="goto_gmtest_page();" id="goto_test_page_button" name="goto_test_page_button" target="_blank" title="查看测试页面" ><i class="glyphicon glyphtext-muted glyphicon glyphicon-random text-muted"></i></a>
<?php }?>
<?php }?>
<?php if ($information->ic_sitecode == 'ah') {?>
<a href="javascript:void(0);" onclick="goto_ahtest_page();" id="goto_test_page_button" name="goto_test_page_button" target="_blank" title="查看测试页面" ><i class="glyphicon glyphtext-muted glyphicon glyphicon-random text-muted"></i></a>
<?php }?>
</div>
<input class="form-control col-xs-24" type="text" id="ic_url" name="ic_url" value="<?php echo $information->ic_url; ?>" >
</div>
@ -1443,7 +1452,7 @@ foreach ($author_list as $author_item) {
<input type="checkbox" name="ignore_url_check" id="ignore_url_check" />忽略URL重复
</label>
<div class="clearfix"></div>
<?php if (in_array($this->config->item('site_code'), array('cht', 'gm'))) {?>
<?php if (in_array($this->config->item('site_code'), array('cht', 'gm','ah'))) {?>
<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" onclick="get_update_cache_url();" value="<?php echo $information->ic_url; ?>" />静态更新
</label>

Loading…
Cancel
Save