|
|
@ -25,11 +25,11 @@ class Info_amp extends CI_Controller
|
|
|
|
if ($icid && $json && $html) {
|
|
|
|
if ($icid && $json && $html) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
//html
|
|
|
|
//html
|
|
|
|
$meta = $this->InfoMetas_model->get($icid, 'AMP');
|
|
|
|
$meta = $this->InfoMetas_model->get($icid, 'AMP_BODY');
|
|
|
|
if ($meta === false) {
|
|
|
|
if ($meta === false) {
|
|
|
|
$this->InfoMetas_model->add($icid, 'AMP', $html);
|
|
|
|
$this->InfoMetas_model->add($icid, 'AMP_BODY', $html);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$this->InfoMetas_model->update($icid, 'AMP', $html);
|
|
|
|
$this->InfoMetas_model->update($icid, 'AMP_BODY', $html);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//json
|
|
|
|
//json
|
|
|
|
$meta = $this->InfoMetas_model->get($icid, 'AMP_JSON');
|
|
|
|
$meta = $this->InfoMetas_model->get($icid, 'AMP_JSON');
|
|
|
|