修改服务生成造成的错误

This commit is contained in:
ayflying
2025-02-26 18:14:42 +08:00
parent 144e2ffb25
commit 6d2b68a202

View File

@@ -91,7 +91,7 @@ func (c *cMake) Logic(name string) (err error) {
//生成文件不覆盖 //生成文件不覆盖
if !gfile.Exists(filePath) { if !gfile.Exists(filePath) {
//fileStr := gfile.GetContents("./make/logic") //fileStr := gfile.GetContents("./make/logic")
get, _ := fs.ReadFile(ConfigFiles, "make/act") get, _ := fs.ReadFile(ConfigFiles, "make/logic")
fileStr := string(get) fileStr := string(get)
fileStr = gstr.Replace(fileStr, "{package}", name) fileStr = gstr.Replace(fileStr, "{package}", name)
fileStr = gstr.Replace(fileStr, "{name}", gstr.CaseCamel(name)) fileStr = gstr.Replace(fileStr, "{name}", gstr.CaseCamel(name))