开始处理函数库

This commit is contained in:
2022-11-18 19:10:25 +08:00
parent 086a60563f
commit 1baa03b12f
3 changed files with 15 additions and 7 deletions

View File

@@ -73,6 +73,8 @@ if (!function_exists('xdebug')) {
*/
function xdebug($data, $type = 'xdebug', $suffix = null, $force = false, $file = null)
{
// 调试
__DIR__;
!is_dir(runtime_path() . 'xdebug/') && mkdir(runtime_path() . 'xdebug/');
if (is_null($file)) {
$file = is_null($suffix) ? runtime_path() . 'xdebug/' . date('Ymd') . '.txt' : runtime_path() . 'xdebug/' . date('Ymd') . "_{$suffix}" . '.txt';