From cc551401033d1008b064b39295474665d9e395c0 Mon Sep 17 00:00:00 2001 From: kongyuebin Date: Thu, 18 Nov 2021 13:51:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=90=86=E5=90=8E=E5=8F=B0beego?= =?UTF-8?q?=E5=8D=87=E7=BA=A7=E5=88=B0v2.0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- agent/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agent/main.go b/agent/main.go index 1953d66..6760f49 100644 --- a/agent/main.go +++ b/agent/main.go @@ -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() }