diff --git a/library/think/create.php b/library/think/create.php index 9fb12262..8185666f 100644 --- a/library/think/create.php +++ b/library/think/create.php @@ -47,26 +47,30 @@ class Create mkdir(APP_PATH . $module . '/' . $path); } foreach ($file as $val) { - $filename = APP_PATH . $module . '/' . $path . '/' . strtolower($val) . EXT; - switch ($path) { - case 'controller': // 控制器 - if (!is_file($filename)) { - file_put_contents($filename, "