Commit f1c800a4 by 邓梁

正式环境迁移

parent 6b442be3
......@@ -6,7 +6,8 @@ import (
_ "github.com/go-sql-driver/mysql"
)
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 DB *sql.DB
......
module nlt.com/pf
go 1.22.5
go 1.21.13
require (
github.com/cloudwego/hertz v0.9.3
......
......@@ -59,7 +59,7 @@
<script>
document.getElementById("confirmButton").onclick = function () {
var url =
"https://tknltdev.agrolinking.cn/api/nlt/pufa/queryJumpUrl";
"https://tknlt.agrolinking.cn/api/nlt/pufa/queryJumpUrl";
const jumpUrl = new URL(window.location.href);
......@@ -92,6 +92,7 @@
})
.catch((error) => {
console.log(error);
window.history.back()
});
};
</script>
......
......@@ -17,8 +17,8 @@ func main() {
h.Static("/", "./html")
// h.GET("/", func(c context.Context, ctx *app.RequestContext) {
// ctx.HTML(200, "index.html", nil)
// })
h.GET("/", func(c context.Context, ctx *app.RequestContext) {
ctx.HTML(200, "index.html", nil)
})
h.Spin()
}
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