Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nlt-pufa-interface
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
邓梁
nlt-pufa-interface
Commits
f1c800a4
Commit
f1c800a4
authored
Nov 15, 2024
by
邓梁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
正式环境迁移
parent
6b442be3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
db/init.go
+2
-1
go.mod
+1
-1
html/index.html
+2
-1
main.go
+3
-3
No files found.
db/init.go
View file @
f1c800a4
...
@@ -6,7 +6,8 @@ import (
...
@@ -6,7 +6,8 @@ import (
_
"github.com/go-sql-driver/mysql"
_
"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
var
DB
*
sql
.
DB
...
...
go.mod
View file @
f1c800a4
module nlt.com/pf
module nlt.com/pf
go 1.2
2.5
go 1.2
1.13
require (
require (
github.com/cloudwego/hertz v0.9.3
github.com/cloudwego/hertz v0.9.3
...
...
html/index.html
View file @
f1c800a4
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
<script>
<script>
document
.
getElementById
(
"confirmButton"
).
onclick
=
function
()
{
document
.
getElementById
(
"confirmButton"
).
onclick
=
function
()
{
var
url
=
var
url
=
"https://tknlt
dev
.agrolinking.cn/api/nlt/pufa/queryJumpUrl"
;
"https://tknlt.agrolinking.cn/api/nlt/pufa/queryJumpUrl"
;
const
jumpUrl
=
new
URL
(
window
.
location
.
href
);
const
jumpUrl
=
new
URL
(
window
.
location
.
href
);
...
@@ -92,6 +92,7 @@
...
@@ -92,6 +92,7 @@
})
})
.
catch
((
error
)
=>
{
.
catch
((
error
)
=>
{
console
.
log
(
error
);
console
.
log
(
error
);
window
.
history
.
back
()
});
});
};
};
</script>
</script>
...
...
main.go
View file @
f1c800a4
...
@@ -17,8 +17,8 @@ func main() {
...
@@ -17,8 +17,8 @@ func main() {
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
)
//
})
})
h
.
Spin
()
h
.
Spin
()
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment