diff --git a/library/think/App.php b/library/think/App.php index 2584700118..c27fb87e0c 100644 --- a/library/think/App.php +++ b/library/think/App.php @@ -312,7 +312,7 @@ public function init($module = '') // 自动读取配置文件 if (is_dir($path . 'config')) { - $dir = $path . 'config'; + $dir = $path . 'config'.DIRECTORY_SEPARATOR; } elseif (is_dir($this->configPath . $module)) { $dir = $this->configPath . $module; }