fix info children

hotfix/远程访问多媒体中心
lmrwork 8 years ago
parent 6920b2dc3e
commit 043bd35224

@ -242,10 +242,12 @@ class Info_amp extends CI_Controller
if (!empty($rs)) {
$newrs = array();
foreach ($rs as $info) {
array_push($newrs, array(
'ic_url' => $info->ic_url,
'ic_id' => $info->ic_id
));
if (!empty($info->ic_content)) {
array_push($newrs, array(
'ic_url' => $info->ic_url,
'ic_id' => $info->ic_id
));
}
}
echo json_encode($newrs);
} else {

Loading…
Cancel
Save