diff --git a/library/org/parser.php b/library/org/parser.php index 0928137b..aa7831ae 100644 --- a/library/org/parser.php +++ b/library/org/parser.php @@ -9,7 +9,7 @@ // | Author: liu21st // +---------------------------------------------------------------------- -namespace think; +namespace org; // 内容解析类 class Parser @@ -24,7 +24,7 @@ class Parser public static function parse($content, $type) { if (!isset(self::$handler[$type])) { - $class = '\\think\\parser\\driver\\' . strtolower($type); + $class = '\\org\\parser\\driver\\' . strtolower($type); self::$handler[$type] = new $class(); } return self::$handler[$type]->parse($content); diff --git a/library/think/db/driver.php b/library/think/db/driver.php index 8986e521..5a3a1c27 100644 --- a/library/think/db/driver.php +++ b/library/think/db/driver.php @@ -17,7 +17,7 @@ use think\Debug; use think\Exception; use think\Lang; use think\Log; -use think\slog; +use think\Slog; abstract class Driver { diff --git a/library/think/slog.php b/library/think/slog.php index 84e2bbdb..5d9dc1da 100644 --- a/library/think/slog.php +++ b/library/think/slog.php @@ -4,7 +4,7 @@ * @author luofei614 */ namespace think; -class slog +class Slog { public static $start_time=0; public static $start_memory=0; diff --git a/mode/common.php b/mode/common.php index 6ce4fa82..64e32015 100644 --- a/mode/common.php +++ b/mode/common.php @@ -42,9 +42,8 @@ return [ 'think\Url' => CORE_PATH . 'url' . EXT, 'think\Debug' => CORE_PATH . 'debug' . EXT, 'think\Input' => CORE_PATH . 'input' . EXT, - 'think\Parser' => CORE_PATH . 'parser' . EXT, 'think\Lang' => CORE_PATH . 'lang' . EXT, - 'think\slog' => CORE_PATH . 'slog' . EXT + 'think\Slog' => CORE_PATH . 'slog' . EXT ], 'init' => [],