From 435ad7bc759f08cdc82d04fdcde1bc80b0f94442 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 22 Dec 2015 16:41:34 +0800 Subject: [PATCH] =?UTF-8?q?rest=E6=8E=A7=E5=88=B6=E5=99=A8=E6=89=A9?= =?UTF-8?q?=E5=B1=95response=E6=96=B9=E6=B3=95=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/controller/rest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/controller/rest.php b/library/think/controller/rest.php index 64bed282..380606e0 100644 --- a/library/think/controller/rest.php +++ b/library/think/controller/rest.php @@ -93,7 +93,7 @@ abstract class Rest protected function response($data, $type = '', $code = 200) { Response::sendHttpStatus($code); - Response::returnData($data, strtolower($type)); + return Response::returnData($data, $type, 1); } /** @@ -131,7 +131,7 @@ abstract class Rest } } } - + return false; } }