icht async

hotfix/远程访问多媒体中心
LMR 7 years ago
parent d1e3eb52b6
commit 9ba62dcb63

@ -534,6 +534,7 @@ class Information extends CI_Controller {
case 'it': case 'it':
case 'ru': case 'ru':
case 'jp': case 'jp':
$data['async_update'] = $url;
if ($delete_only) { if ($delete_only) {
//只删除操作在url修改和不发布信息的时候使用 //只删除操作在url修改和不发布信息的时候使用
$url = $this->config->item('site_url') . '/index.php/welcome/update_cache/delete_only?static_html_url=' . $url; $url = $this->config->item('site_url') . '/index.php/welcome/update_cache/delete_only?static_html_url=' . $url;
@ -554,9 +555,9 @@ 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;
} }
//int return direct //int return direct
/*
$cache_url = $this->input->post('cache_url'); $cache_url = $this->input->post('cache_url');
if ($url && !$cache_url) { if ($url && !$cache_url) {
/*
ignore_user_abort(true); ignore_user_abort(true);
$ch = curl_init(); $ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_URL, $url);
@ -569,7 +570,8 @@ class Information extends CI_Controller {
curl_setopt($ch, CURLOPT_NOBODY, 1); curl_setopt($ch, CURLOPT_NOBODY, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_exec($ch); curl_exec($ch);
curl_close($ch); curl_close($ch);
*/
$data[] = array('name' => 'ok', 'value' => '信息保存成功请在8秒后检查更新页面。', 'url' => $url); $data[] = array('name' => 'ok', 'value' => '信息保存成功请在8秒后检查更新页面。', 'url' => $url);
//如果是外部调用就返回结果,内部就不返回了 //如果是外部调用就返回结果,内部就不返回了
if ($cache_url) { if ($cache_url) {
@ -577,9 +579,7 @@ class Information extends CI_Controller {
} }
return $data; return $data;
} }
*/
} }
$data['async_update'] = $url;
break; break;
case 'ct'://子站点使用 case 'ct'://子站点使用

Loading…
Cancel
Save