From e431091ff0eaa833b1695380727a47144d01c920 Mon Sep 17 00:00:00 2001 From: "lmr@hainatravel.com" <59361885@qq.com> Date: Sun, 20 Jan 2019 00:45:28 -0600 Subject: [PATCH] gengxin ~ --- application/controllers/information.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index f2e76747..f50b2caf 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -554,8 +554,9 @@ class Information extends CI_Controller { $url = $this->config->item('site_url') . '/index.php/welcome/update_cache/?static_html_url=' . $tmp; } //int return direct - - if ($url) { + $cache_url = $this->input->post('cache_url'); + if ($url && !$cache_url) { + ignore_user_abort(true); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_NOSIGNAL,1); @@ -569,7 +570,7 @@ class Information extends CI_Controller { curl_close($ch); $data[] = array('name' => 'ok', 'value' => '信息保存成功,请在8秒后检查更新页面。', 'url' => $url); //如果是外部调用就返回结果,内部就不返回了 - if ($this->input->post('cache_url')) { + if ($cache_url) { echo json_encode($data); } return $data;