diff --git a/library/think/Build.php b/library/think/Build.php index 1285f432..86dd6887 100644 --- a/library/think/Build.php +++ b/library/think/Build.php @@ -97,16 +97,17 @@ class Build } else { // 生成相关MVC文件 foreach ($file as $val) { - $filename = $modulePath . $path . DS . $val . EXT; + $filename = $modulePath . $path . DS . $val . (CLASS_APPEND_SUFFIX ? ucfirst($path) : '') . EXT; $namespace = APP_NAMESPACE . '\\' . ($module ? $module . '\\' : '') . $path; + $class = $val . (CLASS_APPEND_SUFFIX ? ucfirst($path) : ''); switch ($path) { - case CONTROLLER_LAYER: // 控制器 - $content = "