作者 tangxvhui

修改 配置

@@ -61,7 +61,7 @@ func init() { @@ -61,7 +61,7 @@ func init() {
61 61
62 web.BConfig.Listen.HTTPSCertFile = "./config/fjmaimaimai.com_bundle.crt" 62 web.BConfig.Listen.HTTPSCertFile = "./config/fjmaimaimai.com_bundle.crt"
63 web.BConfig.Listen.HTTPSKeyFile = "./config/fjmaimaimai.com.key" 63 web.BConfig.Listen.HTTPSKeyFile = "./config/fjmaimaimai.com.key"
64 - web.InsertFilter("/*", web.BeforeExec, filters.AllowCors()) 64 + web.InsertFilter("/*", web.BeforeRouter, filters.AllowCors())
65 web.InsertFilter("/*", web.BeforeExec, filters.CreateRequstLogFilter(Logger)) 65 web.InsertFilter("/*", web.BeforeExec, filters.CreateRequstLogFilter(Logger))
66 web.InsertFilter("/*", web.AfterExec, filters.CreateResponseLogFilter(Logger), web.WithReturnOnOutput(false)) 66 web.InsertFilter("/*", web.AfterExec, filters.CreateResponseLogFilter(Logger), web.WithReturnOnOutput(false))
67 } 67 }