改进页面trace输出

This commit is contained in:
thinkphp
2016-05-25 16:03:15 +08:00
parent 7a9eeba565
commit 458cd82507
2 changed files with 8 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ class Trace
*/
public function save(array $log = [])
{
if (IS_AJAX || IS_CLI || IS_API || 'html' != Config::get('default_return_type')) {
if (IS_AJAX || IS_CLI || IS_API || 'html' != RESPONSE_TYPE) {
// ajax cli api方式下不输出
return false;
}