admin add edit status password items info
This commit is contained in:
+5
-1
@@ -32,7 +32,11 @@ func GetConfigString(key string) string {
|
||||
data["encrypt_key"] = "M17fcaPeHDr05H17fcaPH1deDH17l3Bd"
|
||||
return data[key]
|
||||
}
|
||||
func GetConfigInt(key string) int { return runViper.GetInt(key) }
|
||||
func GetConfigInt(key string) int {
|
||||
data := make(map[string]int)
|
||||
data["base.login_out_time"] = 86400
|
||||
return data[key]
|
||||
}
|
||||
func GetConfigInt64(key string) int64 { return runViper.GetInt64(key) }
|
||||
func GetConfigBool(key string) bool { return runViper.GetBool(key) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user