#409 bug修复
- 修改 server/model/sys_auto_code.go server/service/sys_auto_code.go server/utils/file_operations.go
This commit is contained in:
@@ -320,6 +320,11 @@ func AutoCreateApi(a *model.AutoCodeStruct) (err error) {
|
||||
}
|
||||
|
||||
func getNeedList(autoCode *model.AutoCodeStruct) (dataList []tplData, fileList []string, needMkdir []string, err error) {
|
||||
// 去除所有空格
|
||||
utils.TrimSpace(autoCode)
|
||||
for _, field := range autoCode.Fields {
|
||||
utils.TrimSpace(field)
|
||||
}
|
||||
// 获取 basePath 文件夹下所有tpl文件
|
||||
tplFileList, err := GetAllTplFile(basePath, nil)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user