From b4cb6c2cd1d598dd0bd75aa4d7f883cda7669e1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E7=A7=80=E9=92=A2?= Date: Wed, 2 Oct 2019 23:28:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E7=94=A8=E8=B0=83=E8=AF=95=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E4=B8=8B=E5=B1=95=E7=A4=BAdebug=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Base.php | 4 ++-- application/api/controller/Base.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application/admin/controller/Base.php b/application/admin/controller/Base.php index 5aa5a80..ee8996d 100644 --- a/application/admin/controller/Base.php +++ b/application/admin/controller/Base.php @@ -28,7 +28,7 @@ class Base extends Controller { 'msg' => $msg, 'data' => $data ]; - if ($this->debug) { + if (config('app.app_debug') && $this->debug) { $return['debug'] = $this->debug; } @@ -62,7 +62,7 @@ class Base extends Controller { 'msg' => $msg, 'data' => $data ]; - if ($this->debug) { + if (config('app.app_debug') && $this->debug) { $return['debug'] = $this->debug; } diff --git a/application/api/controller/Base.php b/application/api/controller/Base.php index a6477c2..3cf4c5d 100644 --- a/application/api/controller/Base.php +++ b/application/api/controller/Base.php @@ -26,7 +26,7 @@ class Base extends Controller { 'msg' => $msg, 'data' => $data ]; - if ($this->debug) { + if (config('app.app_debug') && $this->debug) { $return['debug'] = $this->debug; } @@ -39,7 +39,7 @@ class Base extends Controller { 'msg' => $msg, 'data' => $data ]; - if ($this->debug) { + if (config('app.app_debug') && $this->debug) { $return['debug'] = $this->debug; }