add get_by_icid

master
LMR 11 months ago
parent 042c54cb3d
commit 25dc172813

@ -186,5 +186,25 @@ class infofix extends CI_Controller
} }
function get_by_icid($ic_id)
{
$ic = $this->infoContents_model->get_ic_contents2($ic_id);
if ($ic) {
echo json_encode(
array(
'state' => 0,
'data' => $ic
)
);
} else {
echo json_encode(
array(
'state' => -1,
'msg' => 'not content by ' . $ic_id
)
);
}
}
} }
//end of infofix //end of infofix
Loading…
Cancel
Save