From 5fb0ea7c7d54c5e5d14c7c04a0a20cdc73a92170 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sat, 3 Sep 2016 22:01:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2trace=E6=94=AF=E6=8C=81=20?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Response.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/think/Response.php b/library/think/Response.php index df97d97b..35cafe90 100644 --- a/library/think/Response.php +++ b/library/think/Response.php @@ -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); }