fix list info

hotfix/远程访问多媒体中心
lmrwork 7 years ago
parent b2499dbf01
commit e6569702d0

@ -248,7 +248,12 @@ class Info_amp extends CI_Controller
} else {
$use_photo = $this->config->item('site_image_url').$info->ic_photo;
}
if (!empty($info->ic_content) && !empty($info->ic_url) && stripos($info->ic_url, '/test/')===false) {
if ($data['detail']->ic_type === 'c_attraction' || $data['detail']->ic_template === 'city_info_attractions_list' || $data['detail']->ic_template === 'r_tpl_empty_navi1p') {
$list_info = true;
} else {
$list_info = false;
}
if ($list_info || !empty($info->ic_content) && !empty($info->ic_url) && stripos($info->ic_url, '/test/')===false) {
array_push($newrs, array(
'is_path' => $info->is_path,
'ic_url' => $info->ic_url,
@ -282,7 +287,7 @@ class Info_amp extends CI_Controller
}
echo json_encode(array(
"succ" => true,
"info" => $ic->ic_content,
"info" => $ic->ic_content || $ic->ic_seo_description,
"title" => $ic->ic_title,
"photo" => $use_photo,
"url" => $ic->ic_url,

@ -126,7 +126,7 @@ class InfoContents_model extends CI_Model
public function get_ic_contents2($ic_id)
{
$sql="SELECT top 1 ic_id, ic_content, ic_title, ic_url, ic_photo, ic_sitecode from infoContents where ic_id=?";
$sql="SELECT top 1 ic_id, ic_content, ic_title, ic_url, ic_photo, ic_sitecode, ic_seo_description from infoContents where ic_id=?";
$query=$this->HT->query($sql,array($ic_id));
if ($query->result())
{

Loading…
Cancel
Save