Merge pull request #183 from DowneyL/fix-136

fix:136
This commit is contained in:
xxj
2022-01-04 15:32:41 +08:00
committed by GitHub
3 changed files with 29 additions and 18 deletions

View File

@@ -51,11 +51,11 @@ func CapLowercase(name string) string { // IDAPIID == > idAPIID
func GetTablePrefixName(name string) string { //
tablePrefix := config.GetTablePrefix()
//如果设置了表前缀
if tablePrefix != "" {
name = tablePrefix + name
if tablePrefix == "" || strings.HasPrefix(tablePrefix, "-") {
return name
}
return name
return tablePrefix + name
}
func FilterKeywords(src string) string {