修正单元测试 改进start

This commit is contained in:
thinkphp
2016-05-25 16:10:47 +08:00
parent 458cd82507
commit 62b01bf566
2 changed files with 5 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ class Response
$data = call_user_func_array($this->transform, [$data]);
}
define('RESPONSE_TYPE',$this->type);
defined('RESPONSE_TYPE') or define('RESPONSE_TYPE',$this->type);
// 处理输出数据
$data = $this->output($data);