默认storeName

This commit is contained in:
gotoeasy 2022-06-27 14:28:32 +08:00
parent 6de7d1a8bf
commit 1334a574dc

View File

@ -137,6 +137,9 @@ func ToBytes(data any) []byte {
}
func GeyStoreNameByDate(name string) string {
if name == "" {
name = "default"
}
if conf.IsStoreNameAutoAddDate() {
return fmt.Sprint(name, "-", time.Now().Format("20060102")) // name-yyyymmdd
}