From 9ac162c73e3992ec1c276b583b7a466062e46aff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Mon, 15 Oct 2018 11:02:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BB=E5=8F=96CT=E7=9A=84AMP=E5=86=85?= =?UTF-8?q?=E5=AE=B9=EF=BC=8C=E6=9C=AC=E5=9C=B0=E6=B5=8B=E8=AF=95=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/CT_AMP_Loader.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/application/controllers/CT_AMP_Loader.php b/application/controllers/CT_AMP_Loader.php index 099537fe..27ba257b 100644 --- a/application/controllers/CT_AMP_Loader.php +++ b/application/controllers/CT_AMP_Loader.php @@ -8,7 +8,7 @@ class CT_Amp_Loader extends CI_Controller { function __construct() { parent::__construct(); $this->load->model('information_model'); - $this->load->model('infoMetas_model'); + $this->load->model('InfoMetas_model'); //$this->load->library('Tags_analysis'); } @@ -22,6 +22,9 @@ class CT_Amp_Loader extends CI_Controller { if(!isset($webcode) ) { $webcode="ct"; } + // $info_url="/yangtzecruise/"; + // $webcode="cht"; + $information_detail = $this->information_model->ct_get_by_url($info_url, $webcode); $ic_id = $information_detail->ic_id; $meta_amp_status = $this->InfoMetas_model->get($ic_id, 'AMP_STATUS'); @@ -42,8 +45,9 @@ class CT_Amp_Loader extends CI_Controller { * 测试保存的页面 */ public function test() { - $info_url = $this->input->get_post('info_url'); - $information_detail = $this->information_model->ct_get_by_url($info_url, "ct"); + // $info_url = $this->input->get_post('info_url'); + $info_url = "/yangtzecruise/"; + $information_detail = $this->information_model->ct_get_by_url($info_url, "cht"); if (empty($information_detail)) { echo $info_url.'没有信息类型'; }