add title

hotfix/远程访问多媒体中心
lmr@hainatravel.com 8 years ago
parent a86fc1b294
commit beddc4c832

@ -105,7 +105,8 @@ class Info_amp extends CI_Controller
if ($ic) { if ($ic) {
echo json_encode(array( echo json_encode(array(
"succ" => true, "succ" => true,
"info" => $ic->ic_content "info" => $ic->ic_content,
"title" => $ic->ic_title
)); ));
} else { } else {
echo json_encode(array( echo json_encode(array(

@ -126,7 +126,7 @@ class InfoContents_model extends CI_Model
public function get_ic_contents2($ic_id) public function get_ic_contents2($ic_id)
{ {
$sql="SELECT top 1 ic_id, ic_content from infoContents where ic_id=?"; $sql="SELECT top 1 ic_id, ic_content, ic_title from infoContents where ic_id=?";
$query=$this->HT->query($sql,array($ic_id)); $query=$this->HT->query($sql,array($ic_id));
if ($query->result()) if ($query->result())
{ {

Loading…
Cancel
Save