|
|
@ -88,10 +88,10 @@ class Information extends CI_Controller {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$this->InfoStructures_model->Delete($Structure->is_id);
|
|
|
|
$this->InfoStructures_model->Delete($Structure->is_id);
|
|
|
|
$this->InfoContents_model->Delete($Structure->is_ic_id);
|
|
|
|
$this->InfoContents_model->Delete($Structure->is_ic_id);
|
|
|
|
//如果是已经发布的页面,删除静态文件
|
|
|
|
//如果是已经发布的页面,删除静态文件
|
|
|
|
if ($info_detail->ic_status == 1) {
|
|
|
|
if ($info_detail->ic_status == 1) {
|
|
|
|
$this->update_cache($info_detail->ic_url, true);
|
|
|
|
$this->update_cache($info_detail->ic_url, true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//删除成功后返回一个上级链接给用户
|
|
|
|
//删除成功后返回一个上级链接给用户
|
|
|
|
$drumpurl = site_url('information/edit/' . $Structure->is_parent_id);
|
|
|
|
$drumpurl = site_url('information/edit/' . $Structure->is_parent_id);
|
|
|
|
if ($Structure->is_parent_id == 0)
|
|
|
|
if ($Structure->is_parent_id == 0)
|
|
|
@ -492,13 +492,13 @@ class Information extends CI_Controller {
|
|
|
|
$url = $this->config->item('site_url') . '/index.php/welcome/update_cache/?static_html_url=' . $tmp;
|
|
|
|
$url = $this->config->item('site_url') . '/index.php/welcome/update_cache/?static_html_url=' . $tmp;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if($this->config->item('site_code') == 'ah'){
|
|
|
|
} else if ($this->config->item('site_code') == 'ah') {
|
|
|
|
if($delete_only===true){
|
|
|
|
if ($delete_only === true) {
|
|
|
|
$url = 'https://www.asiahighlights.com/index.php/information/delete_cache_8X913mksJ/?static_html_url=' . $url;
|
|
|
|
$url = 'https://www.asiahighlights.com/index.php/information/delete_cache_8X913mksJ/?static_html_url=' . $url;
|
|
|
|
}else{
|
|
|
|
} else {
|
|
|
|
$url = 'https://www.asiahighlights.com/index.php/information/detail/?static_html_url=' . $url;
|
|
|
|
$url = 'https://www.asiahighlights.com/index.php/information/detail/?static_html_url=' . $url;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}else{ //子站点使用
|
|
|
|
} else { //子站点使用
|
|
|
|
$url = $this->config->item('site_url') . $url . '@cache@refresh';
|
|
|
|
$url = $this->config->item('site_url') . $url . '@cache@refresh';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -569,7 +569,7 @@ class Information extends CI_Controller {
|
|
|
|
//默认更新成功,如果不成功,则返回错误提示信息
|
|
|
|
//默认更新成功,如果不成功,则返回错误提示信息
|
|
|
|
$notice = 200;
|
|
|
|
$notice = 200;
|
|
|
|
if ($flag) {
|
|
|
|
if ($flag) {
|
|
|
|
$result = file_get_contents('https://openapi.us.cdnetworks.com/purge/rest/doPurge?user=ycc@chinahighlights.com&pass=cXi2UbsTrw9Urv&pad=' . $pad . '&type=item&path=' . $url . '&output=json');
|
|
|
|
$result = GET_HTTP('https://openapi.us.cdnetworks.com/purge/rest/doPurge?user=ycc@chinahighlights.com&pass=cXi2UbsTrw9Urv@&pad=' . $pad . '&type=item&path=' . $url . '&output=json');
|
|
|
|
$result = json_decode($result, true);
|
|
|
|
$result = json_decode($result, true);
|
|
|
|
if ($result['resultCode'] != 200)
|
|
|
|
if ($result['resultCode'] != 200)
|
|
|
|
$notice = $result['notice'] . $result['details'];
|
|
|
|
$notice = $result['notice'] . $result['details'];
|
|
|
|