From ac676094777bc3a368b2d7b97671cf8fe25f1d5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E8=AF=9A=E8=AF=9A?= Date: Thu, 13 Sep 2018 17:56:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9AMP=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=9A=84=E9=A1=B5=E5=86=85=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/welcome.php | 2 +- application/views/bootstrap3/refresh_amp_urls.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/application/controllers/welcome.php b/application/controllers/welcome.php index 8ae656db..75659070 100644 --- a/application/controllers/welcome.php +++ b/application/controllers/welcome.php @@ -69,7 +69,7 @@ class Welcome extends CI_Controller { public function create_all_urls($view=false) { set_time_limit(0); $this->output->enable_profiler(false); - $data['all_information'] = $this->Information_model->GetList('ic_status,ic_id,ic_url,ic_sitecode'); + $data['all_information'] = $this->Information_model->GetList('ic_status,ic_id,ic_url,ic_sitecode,is_id'); if ($view == 'amp') { $this->load->view('bootstrap3/header', $data); $this->load->view('bootstrap3/refresh_amp_urls'); diff --git a/application/views/bootstrap3/refresh_amp_urls.php b/application/views/bootstrap3/refresh_amp_urls.php index dcc5b6ee..a2212d62 100644 --- a/application/views/bootstrap3/refresh_amp_urls.php +++ b/application/views/bootstrap3/refresh_amp_urls.php @@ -86,13 +86,13 @@ $info) { - if ($info->ic_status == 1 && !empty($info->ic_url)) { + if ($info->ic_status == 1 && !empty($info->ic_url) && $info->ic_content!=='') { $i++; ?> amp_status==='1'){echo ''; } ?> - ic_url; ?> + ic_url; ?>