mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 15: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\Config;
|
||||
use think\Hook;
|
||||
use think\Log;
|
||||
@@ -766,7 +767,7 @@ class Route
|
||||
{
|
||||
if (!empty(self::$bind['type'])) {
|
||||
// 记录绑定信息
|
||||
APP_DEBUG && Log::record('[ BIND ] ' . var_export(self::$bind, true), 'info');
|
||||
App::$debug && Log::record('[ BIND ] ' . var_export(self::$bind, true), 'info');
|
||||
// 如果有URL绑定 则进行绑定检测
|
||||
switch (self::$bind['type']) {
|
||||
case 'class':
|
||||
|
||||
Reference in New Issue
Block a user