diff --git a/library/think/Response.php b/library/think/Response.php index 8c35f87b..be0146aa 100644 --- a/library/think/Response.php +++ b/library/think/Response.php @@ -113,7 +113,7 @@ class Response } if (is_scalar($data)) { echo $data; - } else { + } elseif (!is_null($data)) { throw new Exception('不支持的数据类型输出:' . gettype($data)); }