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
b7f3d90d
Commit
b7f3d90d
authored
Dec 30, 2024
by
liang.deng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log
parent
bec31acf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
handler/auth.go
+2
-1
handler/pay_result.go
+2
-0
No files found.
handler/auth.go
View file @
b7f3d90d
...
@@ -29,7 +29,8 @@ func Auth(ctx context.Context, c *app.RequestContext) {
...
@@ -29,7 +29,8 @@ func Auth(ctx context.Context, c *app.RequestContext) {
return
return
}
}
req
,
err
=
model
.
VerifyAndDecrypt
[
model
.
AuthReq
](
creq
)
req
,
err
=
model
.
VerifyAndDecrypt
[
model
.
AuthReq
](
creq
)
fmt
.
Println
(
req
)
log
.
Println
(
"互信接口请求参数(解密后):"
)
log
.
Println
(
req
)
if
err
!=
nil
{
if
err
!=
nil
{
if
err
.
Error
()
==
"解密错误"
{
if
err
.
Error
()
==
"解密错误"
{
resp
.
Head
.
Code
=
nltconst
.
DECRYPT_ERROR
resp
.
Head
.
Code
=
nltconst
.
DECRYPT_ERROR
...
...
handler/pay_result.go
View file @
b7f3d90d
...
@@ -28,6 +28,8 @@ func QueryPayResult(ctx context.Context, c *app.RequestContext) {
...
@@ -28,6 +28,8 @@ func QueryPayResult(ctx context.Context, c *app.RequestContext) {
return
return
}
}
req
,
err
=
model
.
VerifyAndDecrypt
[
model
.
PayResultReq
](
creq
)
req
,
err
=
model
.
VerifyAndDecrypt
[
model
.
PayResultReq
](
creq
)
log
.
Println
(
"查询接口请求参数(解密后):"
)
log
.
Println
(
req
)
if
err
!=
nil
{
if
err
!=
nil
{
if
err
.
Error
()
==
"解密错误"
{
if
err
.
Error
()
==
"解密错误"
{
resp
.
Head
.
Code
=
nltconst
.
DECRYPT_ERROR
resp
.
Head
.
Code
=
nltconst
.
DECRYPT_ERROR
...
...
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