From 5a1f579d0b5f29a553778fac46ea4773cb966d9f Mon Sep 17 00:00:00 2001 From: LMR <59361885@qq.com> Date: Fri, 16 Aug 2024 15:24:58 +0800 Subject: [PATCH] infofix fix --- application/controllers/infofix.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/controllers/infofix.php b/application/controllers/infofix.php index 2556e414..a8a3ed2e 100644 --- a/application/controllers/infofix.php +++ b/application/controllers/infofix.php @@ -193,7 +193,7 @@ class infofix extends CI_Controller function get_by_icid($ic_id) { $ic = $this->infoContents_model->get_ic_contents2($ic_id); - $json = $this->infoMetas_model->get($ic_id, 'AMP_JSON'); + $json = json_decode($this->infoMetas_model->get($ic_id, 'AMP_JSON')); $use = $this->infoMetas_model->get($ic_id, 'AMP_BODY_PC_STATUS'); if ($ic) { echo json_encode( @@ -201,7 +201,7 @@ class infofix extends CI_Controller 'state' => 0, 'ic_content' => $ic->ic_content, 'pc_use' => $use, - 'json' => json_encode($json) + 'json' => $json ) ); } else {