代理后台beego升级到v2.0版本

This commit is contained in:
kongyuebin 2021-11-18 13:51:06 +08:00
parent 4032d98ce1
commit cc55140103

View File

@ -3,11 +3,11 @@ package main
import (
_ "agent/models"
_ "agent/routers"
beego "github.com/beego/beego/v2/server/web"
"github.com/beego/beego/v2/server/web"
)
func main() {
beego.BConfig.WebConfig.Session.SessionOn = true
beego.Run()
web.BConfig.WebConfig.Session.SessionOn = true
web.Run()
}