|
|
|
@ -117,11 +117,11 @@ class Welcome extends CI_Controller {
|
|
|
|
|
libxml_use_internal_errors(true);
|
|
|
|
|
//$htm_doc->strictErrorChecking = false;
|
|
|
|
|
if (empty($information->ic_content)) {
|
|
|
|
|
$this->echo_json(array[
|
|
|
|
|
$this->echo_json(array(
|
|
|
|
|
'status' => 'error',
|
|
|
|
|
'infoId' => $info_id,
|
|
|
|
|
'message' => 'info content is empty'
|
|
|
|
|
]);
|
|
|
|
|
));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
$htm_doc->loadHTML($information->ic_content);
|
|
|
|
@ -165,12 +165,12 @@ class Welcome extends CI_Controller {
|
|
|
|
|
$information->ic_ht_product_type,
|
|
|
|
|
$information->ic_author);
|
|
|
|
|
|
|
|
|
|
$this->echo_json(array[
|
|
|
|
|
$this->echo_json(array(
|
|
|
|
|
'status' => 'ok',
|
|
|
|
|
'infoId' => $info_id,
|
|
|
|
|
'message' => 'success',
|
|
|
|
|
'date' => date('Y-m-d h:i:s')
|
|
|
|
|
]);
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private function echo_json($obj) {
|
|
|
|
|