Beispiel #1
0
func main() {
	initDb()
	beego.InsertFilter("/*", beego.BeforeRouter, FilterUser)
	wbconf.LoadCategory()
	beego.SetLogger("file", `{"filename":"logs/running.log", "level":6 }`)
	beego.Run()

}
Beispiel #2
0
func (this *ConfigController) Update() {
	this.ItemController.Update()
	wbconf.LoadCategory()
}
Beispiel #3
0
func (this *ConfigController) Add() {
	this.ItemController.Add()
	wbconf.LoadCategory()
}