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); }