add image fix

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

@ -268,11 +268,17 @@ class Info_amp extends CI_Controller
if ($icid) {
$ic = $this->InfoContents_model->get_ic_contents2($icid);
if ($ic) {
$show_photo_meta = $this->InfoMetas_model->get($icid, 'meta_use_list_picture');
if ($show_photo_meta === 'no') {
$use_photo = '';
} else {
$use_photo = $this->config->item('site_image_url').$ic->ic_photo;
}
echo json_encode(array(
"succ" => true,
"info" => $ic->ic_content,
"title" => $ic->ic_title,
"photo" => $this->config->item('site_image_url').$ic->ic_photo,
"photo" => $use_photo,
"url" => $ic->ic_url,
"site" => $this->config->item('site_url')
));

Loading…
Cancel
Save