mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 07:02:47 +08:00
取消 APP_DEBUG 常量 改为 App::$debug 属性获取 设置调试模式 改为 app_debug 配置参数 在应用配置文件中设置
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
|
||||
namespace think;
|
||||
|
||||
use think\App;
|
||||
use think\Debug;
|
||||
use think\Log;
|
||||
|
||||
@@ -100,7 +101,7 @@ class Hook
|
||||
if (isset(self::$tags[$tag])) {
|
||||
foreach (self::$tags[$tag] as $name) {
|
||||
|
||||
if (APP_DEBUG) {
|
||||
if (App::$debug) {
|
||||
Debug::remark('behavior_start', 'time');
|
||||
}
|
||||
|
||||
@@ -110,7 +111,7 @@ class Hook
|
||||
return $result;
|
||||
}
|
||||
|
||||
if (APP_DEBUG) {
|
||||
if (App::$debug) {
|
||||
Debug::remark('behavior_end', 'time');
|
||||
if ($name instanceof \Closure) {
|
||||
$name = 'Closure';
|
||||
|
||||
Reference in New Issue
Block a user