修正Response类send方法

This commit is contained in:
thinkphp
2016-05-23 08:30:17 +08:00
parent 2106cdceaf
commit 0717458762

View File

@@ -113,7 +113,7 @@ class Response
}
if (is_scalar($data)) {
echo $data;
} else {
} elseif (!is_null($data)) {
throw new Exception('不支持的数据类型输出:' . gettype($data));
}