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