response输出对html和text类型不做任何处理

This commit is contained in:
thinkphp
2016-01-16 10:16:51 +08:00
parent e278c75d62
commit 5fa8110b03

View File

@@ -62,7 +62,9 @@ class Response
$data = $handler . '(' . json_encode($data, JSON_UNESCAPED_UNICODE) . ');';
break;
case '':
// 类型为空不做处理
case 'html':
case 'text':
// 不做处理
break;
default:
// 用于扩展其他返回格式数据