From 2e5710bbcd13e89fe9b4e9670a46135fce10415d Mon Sep 17 00:00:00 2001 From: F4NNIU Date: Wed, 15 Nov 2017 08:31:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=8E=AF=E5=A2=83=E5=8F=98?= =?UTF-8?q?=E9=87=8F=20env=20=E4=B8=AD=E8=AE=BE=E7=BD=AE=20app=5Fdebug=20?= =?UTF-8?q?=E5=90=8E=E5=87=BA=E7=8E=B0=E5=89=8D=E5=90=8E=E7=AB=AF=E4=B8=8D?= =?UTF-8?q?=E4=B8=80=E8=87=B4=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/config.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/config.php b/application/config.php index 9a934d2a6..53317fe3d 100755 --- a/application/config.php +++ b/application/config.php @@ -9,6 +9,7 @@ // +---------------------------------------------------------------------- // | Author: liu21st // +---------------------------------------------------------------------- +use think\Env; return [ // +---------------------------------------------------------------------- @@ -17,9 +18,9 @@ return [ // 应用命名空间 'app_namespace' => 'app', // 应用调试模式 - 'app_debug' => true, + 'app_debug' => Env::get('app.debug', true), // 应用Trace - 'app_trace' => false, + 'app_trace' => Env::get('app.trace', false), // 应用模式状态 'app_status' => '', // 是否支持多模块 -- Gitee