diff --git a/database/gdb/gdb_model_soft_time.go b/database/gdb/gdb_model_soft_time.go index 0948d8d3e..4958be16e 100644 --- a/database/gdb/gdb_model_soft_time.go +++ b/database/gdb/gdb_model_soft_time.go @@ -9,6 +9,7 @@ package gdb import ( "context" "fmt" + "strings" "github.com/gogf/gf/v2/container/garray" "github.com/gogf/gf/v2/errors/gcode" @@ -189,7 +190,7 @@ func (m *softTimeMaintainer) getSoftFieldNameAndType( schema string, table string, checkFiledNames []string, ) (fieldName string, fieldType LocalType) { var ( - cacheKey = fmt.Sprintf(`getSoftFieldNameAndType:%s#%s#%p`, schema, table, checkFiledNames) + cacheKey = fmt.Sprintf(`getSoftFieldNameAndType:%s#%s#%s`, schema, table, strings.Join(checkFiledNames, "_")) cacheDuration = gcache.DurationNoExpire cacheFunc = func(ctx context.Context) (value interface{}, err error) { // Ignore the error from TableFields.