更新cdn用户密码

hotfix/远程访问多媒体中心
尹诚诚 8 years ago
parent 91dc70e2c0
commit bc8a847e48

@ -88,10 +88,10 @@ class Information extends CI_Controller {
}
$this->InfoStructures_model->Delete($Structure->is_id);
$this->InfoContents_model->Delete($Structure->is_ic_id);
//如果是已经发布的页面,删除静态文件
if ($info_detail->ic_status == 1) {
$this->update_cache($info_detail->ic_url, true);
}
//如果是已经发布的页面,删除静态文件
if ($info_detail->ic_status == 1) {
$this->update_cache($info_detail->ic_url, true);
}
//删除成功后返回一个上级链接给用户
$drumpurl = site_url('information/edit/' . $Structure->is_parent_id);
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;
}
}
} else if($this->config->item('site_code') == 'ah'){
if($delete_only===true){
$url = 'https://www.asiahighlights.com/index.php/information/delete_cache_8X913mksJ/?static_html_url=' . $url;
}else{
$url = 'https://www.asiahighlights.com/index.php/information/detail/?static_html_url=' . $url;
}
}else{ //子站点使用
} else if ($this->config->item('site_code') == 'ah') {
if ($delete_only === true) {
$url = 'https://www.asiahighlights.com/index.php/information/delete_cache_8X913mksJ/?static_html_url=' . $url;
} else {
$url = 'https://www.asiahighlights.com/index.php/information/detail/?static_html_url=' . $url;
}
} else { //子站点使用
$url = $this->config->item('site_url') . $url . '@cache@refresh';
}
@ -569,7 +569,7 @@ class Information extends CI_Controller {
//默认更新成功,如果不成功,则返回错误提示信息
$notice = 200;
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);
if ($result['resultCode'] != 200)
$notice = $result['notice'] . $result['details'];

Loading…
Cancel
Save