diff --git a/application/controllers/info_amp.php b/application/controllers/info_amp.php index 74f8f499..eaeb1d7e 100644 --- a/application/controllers/info_amp.php +++ b/application/controllers/info_amp.php @@ -242,13 +242,19 @@ class Info_amp extends CI_Controller if (!empty($rs)) { $newrs = array(); foreach ($rs as $info) { + $show_photo_meta = $this->InfoMetas_model->get($info->ic_id, 'meta_use_list_picture'); + if ($show_photo_meta == 'no') { + $use_photo = ''; + } else { + $use_photo = $this->config->item('site_image_url').$ic->ic_photo; + } if (!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, 'ic_id' => $info->ic_id, 'title' => $info->ic_title, - 'photo' => $this->config->item('site_image_url').$info->ic_photo, + 'photo' => $use_photo, 'im_id' => $info->im_id )); }