hotfix/远程访问多媒体中心
lmrwork 7 years ago
parent 87b0edc6fe
commit 2eed75fad1

@ -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
));
}

Loading…
Cancel
Save