This commit is contained in:
huangsimin@fusen.cn 2023-12-06 17:28:01 +08:00
parent a20f76c009
commit a2873f273b

View File

@ -313,9 +313,10 @@ func ExecCreateAutoLogic(workerSpaceDir string, ServiceName string, genDir, pack
} else {
plist := strings.Split(param, ".")
lowerName := strings.ToLower(plist[len(plist)-1])
p = lowerName[0:3]
if _, ok := dup[p]; ok {
p = lowerName
if strings.Contains(lowerName, "req") {
if _, ok := dup["ctx"]; ok {
p = "req"
}
}
if _, ok := dup[p]; ok {
p = fmt.Sprintf("param%d", i)