mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-09-02 05:31:36 +08:00
类库别名和调用修正
增加sae日志驱动 改进Hook类的exec方法 行为扩展优先检测标签方法 不存在则调用run方法 NOW_TIME改用REQUEST_TIME_FLOAT 变量命名规范
This commit is contained in:
@@ -42,7 +42,7 @@ class ShowPageTrace {
|
||||
$info[] = $file.' ( '.number_format(filesize($file)/1024,2).' KB )';
|
||||
}
|
||||
$trace = [];
|
||||
Debug::remark('START',$GLOBALS['startTime']);
|
||||
Debug::remark('START',NOW_TIME);
|
||||
$base = [
|
||||
'请求信息' => date('Y-m-d H:i:s',$_SERVER['REQUEST_TIME']).' '.$_SERVER['SERVER_PROTOCOL'].' '.$_SERVER['REQUEST_METHOD'].' : '.$_SERVER['PHP_SELF'],
|
||||
'运行时间' => Debug::getUseTime('START','END',6).'s',
|
||||
@@ -84,7 +84,7 @@ class ShowPageTrace {
|
||||
unset($files,$info,$base,$debug);
|
||||
// 调用Trace页面模板
|
||||
ob_start();
|
||||
include Config::has('tmpl_trace_file')?Config::get('tmpl_trace_file'):THINK_PATH.'tpl/page_trace.tpl';
|
||||
include Config::has('tmpl_trace_file') ? Config::get('tmpl_trace_file') : THINK_PATH.'tpl/page_trace.tpl';
|
||||
return ob_get_clean();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user