From d1f104c25663b72cbeb9b852a4b47bffefdd8c5b Mon Sep 17 00:00:00 2001 From: November-12 <845255519@qq.com> Date: Fri, 3 Nov 2023 21:21:43 +0800 Subject: [PATCH] Update main.go --- main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.go b/main.go index d427f76bc..2deb1a116 100644 --- a/main.go +++ b/main.go @@ -72,5 +72,10 @@ func main() { beego.SetStaticPath("/files/init-images", "others/init_images") // 静态文件路径 beego.SetStaticPath("/files", "files") + + beego.BConfig.CopyRequestBody = true + beego.BConfig.WebConfig.Session.SessionOn = true + beego.BConfig.WebConfig.AutoRender = false + beego.Run(":9999") }