mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
增加APP_HOOK常量 用于是否启用 hook
This commit is contained in:
7
base.php
7
base.php
@@ -32,6 +32,7 @@ defined('MODEL_LAYER') or define('MODEL_LAYER', 'model');
|
||||
defined('VIEW_LAYER') or define('VIEW_LAYER', 'view');
|
||||
defined('CONTROLLER_LAYER') or define('CONTROLLER_LAYER', 'controller');
|
||||
defined('APP_DEBUG') or define('APP_DEBUG', false); // 是否调试模式
|
||||
defined('APP_HOOK') or define('APP_HOOK', false); // 是否开启HOOK
|
||||
defined('ENV_PREFIX') or define('ENV_PREFIX', 'T_'); // 环境变量的配置前缀
|
||||
defined('IS_API') or define('IS_API', false); // 是否API接口
|
||||
defined('SLOG_ON') or define('SLOG_ON', false); // 是否开启socketLog
|
||||
@@ -313,7 +314,7 @@ function S($name, $value = '', $options = null)
|
||||
* @param string $css 样式
|
||||
* @return void|array
|
||||
*/
|
||||
function trace($log,$level='log',$css='')
|
||||
function trace($log, $level = 'log', $css = '')
|
||||
{
|
||||
think\Slog::record($level,$log,$css);
|
||||
}
|
||||
think\Slog::record($level, $log, $css);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user