Commit 93df1fc5 by 邓梁

正式环境

parent f1c800a4
...@@ -7,7 +7,7 @@ import ( ...@@ -7,7 +7,7 @@ import (
) )
// var dsn = "root:Pannong12306@tcp(127.0.0.1:3306)/pr_order?charset=utf8&parseTime=True&loc=Local" // var dsn = "root:Pannong12306@tcp(127.0.0.1:3306)/pr_order?charset=utf8&parseTime=True&loc=Local"
var dsn = "demeter:ajc4crb.buj-GHJ!pzw@tcp(10.0.0.2:3306)/pr_order?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false" var dsn = `demeter:ajc4crb.buj-GHJ!pzw@tcp(10.0.0.2:3306)/pr_order?useUnicode=true&characterEncoding=utf8&useSSL=false`
var DB *sql.DB var DB *sql.DB
......
...@@ -13,9 +13,9 @@ func main() { ...@@ -13,9 +13,9 @@ func main() {
server.WithHostPorts(":8970"), server.WithHostPorts(":8970"),
) )
route.Register(h) route.Register(h)
h.LoadHTMLGlob("html/*") // h.LoadHTMLGlob("html/*")
h.Static("/", "./html") // h.Static("/", "./html")
h.GET("/", func(c context.Context, ctx *app.RequestContext) { h.GET("/", func(c context.Context, ctx *app.RequestContext) {
ctx.HTML(200, "index.html", nil) ctx.HTML(200, "index.html", nil)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment