|
|
@ -65,25 +65,14 @@ class Welcome extends CI_Controller {
|
|
|
|
$this->load->view('bootstrap/footer');
|
|
|
|
$this->load->view('bootstrap/footer');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//获取所有信息+产品url
|
|
|
|
//获取所有信息URL,用来批量静态化更新
|
|
|
|
public function create_all_urls() {
|
|
|
|
public function create_all_urls() {
|
|
|
|
set_time_limit(0);
|
|
|
|
set_time_limit(0);
|
|
|
|
$this->output->enable_profiler(false);
|
|
|
|
$this->output->enable_profiler(false);
|
|
|
|
$this->Information_model->topNum = false;
|
|
|
|
|
|
|
|
$data['all_information'] = $this->Information_model->GetList('ic_status,ic_url,ic_sitecode');
|
|
|
|
$data['all_information'] = $this->Information_model->GetList('ic_status,ic_url,ic_sitecode');
|
|
|
|
//系列站产品连接
|
|
|
|
$this->load->view('bootstrap/header', $data);
|
|
|
|
$site_code = strtoupper($this->config->item('site_code'));
|
|
|
|
$this->load->view('bootstrap/cache_url', $data);
|
|
|
|
if (!empty($site_code)) {
|
|
|
|
$this->load->view('bootstrap/footer');
|
|
|
|
$this->load->helper('file');
|
|
|
|
|
|
|
|
$path = APPPATH . '/views/product_urls/updateCache' . $site_code . '.txt';
|
|
|
|
|
|
|
|
if (file_exists($path)) {
|
|
|
|
|
|
|
|
$data['product_urls'] = read_file($path);
|
|
|
|
|
|
|
|
$domain = $this->config->item('site_url');
|
|
|
|
|
|
|
|
$data['product_urls'] = str_replace("\n", '<br/>', $data['product_urls']);
|
|
|
|
|
|
|
|
$data['product_urls'] = str_replace($domain, $domain . '/index.php/welcome/update_cache/?static_html_url=', $data['product_urls']);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$this->load->view('none_urls', $data);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//获取某个信息节点和子节点url
|
|
|
|
//获取某个信息节点和子节点url
|
|
|
|