diff --git a/library/think/Build.php b/library/think/Build.php index 13b7bfdc..d08dc50b 100644 --- a/library/think/Build.php +++ b/library/think/Build.php @@ -193,6 +193,10 @@ class Build protected static function buildCommon($module) { $filename = CONF_PATH . ($module ? $module . DS : '') . 'config.php'; + + if (!is_dir(dirname($filename))) { + mkdir(dirname($filename, 0755, true)); + } if (!is_file($filename)) { file_put_contents($filename, "