mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
页面trace支持 环境变量设置
This commit is contained in:
@@ -13,6 +13,7 @@ namespace think;
|
|||||||
|
|
||||||
use think\Config;
|
use think\Config;
|
||||||
use think\Debug;
|
use think\Debug;
|
||||||
|
use think\Env;
|
||||||
use think\response\Json as JsonResponse;
|
use think\response\Json as JsonResponse;
|
||||||
use think\response\Jsonp as JsonpResponse;
|
use think\response\Jsonp as JsonpResponse;
|
||||||
use think\response\Redirect as RedirectResponse;
|
use think\response\Redirect as RedirectResponse;
|
||||||
@@ -96,7 +97,7 @@ class Response
|
|||||||
$data = $this->getContent();
|
$data = $this->getContent();
|
||||||
|
|
||||||
// Trace调试注入
|
// Trace调试注入
|
||||||
if (Config::get('app_trace')) {
|
if (Env::get('app_trace', Config::get('app_trace'))) {
|
||||||
Debug::inject($this, $data);
|
Debug::inject($this, $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user