改名
This commit is contained in:
parent
a20f76c009
commit
a2873f273b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user