From e982acb1815add979effe4aa160fc494b544e900 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=9D=E5=A4=A7=E5=85=A8?= Date: Thu, 6 Jul 2017 10:27:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=BC=95=E5=85=A5=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/main.go b/main.go index a9636db..6097d81 100644 --- a/main.go +++ b/main.go @@ -5,7 +5,6 @@ import ( _ "github.com/george518/PPGo_Job/mail" "github.com/george518/PPGo_Job/models" _ "github.com/george518/PPGo_Job/routers" - "os" "github.com/george518/PPGo_Job/jobs" ) @@ -15,15 +14,11 @@ const ( func init() { //初始化数据模型 - PP_PATH,_ := os.Getwd() - CONFIG := PP_PATH + "/config/app.conf" - beego.LoadAppConfig("ini", CONFIG) models.Init() jobs.InitJobs() } func main() { + beego.BConfig.WebConfig.Session.SessionOn = true beego.Run() -} - - +} \ No newline at end of file