From 071745876255223a4c8015373499418826d8ddcb Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 23 May 2016 08:30:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Response=E7=B1=BBsend?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }