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
dbae01d7
Commit
dbae01d7
authored
Nov 01, 2024
by
dliangx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
index.html
parent
8d4ff898
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
handler/jump_url.go
+1
-3
html/index.html
+3
-4
No files found.
handler/jump_url.go
View file @
dbae01d7
...
...
@@ -16,15 +16,13 @@ func QueryJumpUrl(ctx context.Context, c *app.RequestContext) {
var
req
model
.
PayResultReq
var
resp
model
.
HttpBodyResp
[
string
]
err
=
c
.
BindAndValidate
(
&
req
)
if
err
!=
nil
{
if
err
!=
nil
||
req
.
DuebillNoOrg
==
""
{
resp
.
Head
.
Code
=
nltconst
.
PARAM_ERROR
resp
.
Head
.
ServiceTime
=
nltconst
.
GetNowTime
()
c
.
JSON
(
consts
.
StatusOK
,
resp
)
return
}
println
(
req
.
DuebillNoOrg
)
rows
,
err
:=
db
.
DB
.
Query
(
"select disburse_sign_url from loan_orderinfo where serial_no = ? "
,
&
req
.
DuebillNoOrg
)
if
err
!=
nil
{
...
...
html/index.html
View file @
dbae01d7
...
...
@@ -73,9 +73,7 @@
});
const
idParam
=
searchParams
.
get
(
"param"
);
var
data
=
{
request
:
{
duebillNoOrg
:
idParam
,
},
};
fetch
(
url
,
{
method
:
"POST"
,
...
...
@@ -83,8 +81,9 @@
"Content-Type"
:
"application/json"
,
},
body
:
JSON
.
stringify
(
data
),
})
.
then
((
res
)
=>
{
}).
then
(
response
=>
response
.
json
())
.
then
(
res
=>
{
if
(
res
.
head
.
code
==
"000000"
)
{
window
.
location
.
href
=
res
.
body
;
}
else
{
...
...
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