From 70a0288d0aaffb8fa6412dadab3c1c9c025b9784 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 3 Nov 2022 11:50:29 +0800 Subject: [PATCH] bugfix: guide set error --- webapp/controller/GuideController.class.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/webapp/controller/GuideController.class.php b/webapp/controller/GuideController.class.php index 2ea9b723..a5b4e3f7 100644 --- a/webapp/controller/GuideController.class.php +++ b/webapp/controller/GuideController.class.php @@ -13,9 +13,7 @@ class GuideController extends BaseAuthedController { 'account_id' => $this->_getAccountId() ) ); - echo json_encode(array( - 'errcode' => 0, - 'errmsg' => "OK", + $this->_rspData(array( 'data' => $row ? $row['data'] : null )); } @@ -40,6 +38,7 @@ class GuideController extends BaseAuthedController { 'modifytime' => $this->_getNowTime() ) ); + $this->_rspOk(); } }