|
|
|
@ -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,
|
|
|
|
|