This commit is contained in:
DowneyL
2021-12-24 16:15:07 +08:00
parent dff30a5651
commit 91d0a9b24a
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 {