mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
应用调试模式下展示debug信息
This commit is contained in:
parent
5247f32e27
commit
b4cb6c2cd1
@ -28,7 +28,7 @@ class Base extends Controller {
|
|||||||
'msg' => $msg,
|
'msg' => $msg,
|
||||||
'data' => $data
|
'data' => $data
|
||||||
];
|
];
|
||||||
if ($this->debug) {
|
if (config('app.app_debug') && $this->debug) {
|
||||||
$return['debug'] = $this->debug;
|
$return['debug'] = $this->debug;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -62,7 +62,7 @@ class Base extends Controller {
|
|||||||
'msg' => $msg,
|
'msg' => $msg,
|
||||||
'data' => $data
|
'data' => $data
|
||||||
];
|
];
|
||||||
if ($this->debug) {
|
if (config('app.app_debug') && $this->debug) {
|
||||||
$return['debug'] = $this->debug;
|
$return['debug'] = $this->debug;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ class Base extends Controller {
|
|||||||
'msg' => $msg,
|
'msg' => $msg,
|
||||||
'data' => $data
|
'data' => $data
|
||||||
];
|
];
|
||||||
if ($this->debug) {
|
if (config('app.app_debug') && $this->debug) {
|
||||||
$return['debug'] = $this->debug;
|
$return['debug'] = $this->debug;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ class Base extends Controller {
|
|||||||
'msg' => $msg,
|
'msg' => $msg,
|
||||||
'data' => $data
|
'data' => $data
|
||||||
];
|
];
|
||||||
if ($this->debug) {
|
if (config('app.app_debug') && $this->debug) {
|
||||||
$return['debug'] = $this->debug;
|
$return['debug'] = $this->debug;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user