func main() { initDb() beego.InsertFilter("/*", beego.BeforeRouter, FilterUser) wbconf.LoadCategory() beego.SetLogger("file", `{"filename":"logs/running.log", "level":6 }`) beego.Run() }
func (this *ConfigController) Update() { this.ItemController.Update() wbconf.LoadCategory() }
func (this *ConfigController) Add() { this.ItemController.Add() wbconf.LoadCategory() }