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; } }