读取CT的AMP内容,本地测试完成。

hotfix/远程访问多媒体中心
赵鹏 7 years ago
parent 42a2aa171a
commit 9ac162c73e

@ -8,7 +8,7 @@ class CT_Amp_Loader extends CI_Controller {
function __construct() { function __construct() {
parent::__construct(); parent::__construct();
$this->load->model('information_model'); $this->load->model('information_model');
$this->load->model('infoMetas_model'); $this->load->model('InfoMetas_model');
//$this->load->library('Tags_analysis'); //$this->load->library('Tags_analysis');
} }
@ -22,6 +22,9 @@ class CT_Amp_Loader extends CI_Controller {
if(!isset($webcode) ) { if(!isset($webcode) ) {
$webcode="ct"; $webcode="ct";
} }
// $info_url="/yangtzecruise/";
// $webcode="cht";
$information_detail = $this->information_model->ct_get_by_url($info_url, $webcode); $information_detail = $this->information_model->ct_get_by_url($info_url, $webcode);
$ic_id = $information_detail->ic_id; $ic_id = $information_detail->ic_id;
$meta_amp_status = $this->InfoMetas_model->get($ic_id, 'AMP_STATUS'); $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() { public function test() {
$info_url = $this->input->get_post('info_url'); // $info_url = $this->input->get_post('info_url');
$information_detail = $this->information_model->ct_get_by_url($info_url, "ct"); $info_url = "/yangtzecruise/";
$information_detail = $this->information_model->ct_get_by_url($info_url, "cht");
if (empty($information_detail)) { if (empty($information_detail)) {
echo $info_url.'没有信息类型'; echo $info_url.'没有信息类型';
} }

Loading…
Cancel
Save