修改配置后更新全局变量

pull/23/head
taoshihan1991 4 years ago
parent 450955d4cf
commit 6b4926645d

@ -14,6 +14,7 @@ func UpdateConfig(key string, value string) {
ConfValue: value, ConfValue: value,
} }
DB.Model(c).Where("conf_key = ?", key).Update(c) DB.Model(c).Where("conf_key = ?", key).Update(c)
InitConfig()
} }
func FindConfigs() []Config { func FindConfigs() []Config {
var config []Config var config []Config

Loading…
Cancel
Save