页面trace支持 环境变量设置

This commit is contained in:
thinkphp
2016-09-03 22:01:38 +08:00
parent 0e4549fe76
commit 5fb0ea7c7d

View File

@@ -13,6 +13,7 @@ namespace think;
use think\Config;
use think\Debug;
use think\Env;
use think\response\Json as JsonResponse;
use think\response\Jsonp as JsonpResponse;
use think\response\Redirect as RedirectResponse;
@@ -96,7 +97,7 @@ class Response
$data = $this->getContent();
// Trace调试注入
if (Config::get('app_trace')) {
if (Env::get('app_trace', Config::get('app_trace'))) {
Debug::inject($this, $data);
}