应用调试模式下展示debug信息

This commit is contained in:
何秀钢 2019-10-02 23:28:46 +08:00
parent 5247f32e27
commit b4cb6c2cd1
2 changed files with 4 additions and 4 deletions

View File

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

View File

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