Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
system_pay
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王沛
system_pay
Commits
921ac127
Commit
921ac127
authored
Sep 22, 2023
by
wangp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除多余注释
parent
9e643334
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
255 deletions
+14
-255
notice.go
controller/api/v1/pay/notice.go
+11
-11
pay.go
repository/pay/pay.go
+3
-244
No files found.
controller/api/v1/pay/notice.go
View file @
921ac127
...
@@ -37,19 +37,19 @@ func (l *PayController) CashierNotice(c *gin.Context) {
...
@@ -37,19 +37,19 @@ func (l *PayController) CashierNotice(c *gin.Context) {
fmt
.
Println
(
"拉卡拉回调(收银台)start"
)
fmt
.
Println
(
"拉卡拉回调(收银台)start"
)
//验证签名
//验证签名
err
:=
VerifySignCert
(
c
)
//
err := VerifySignCert(c)
if
err
!=
nil
{
//
if err != nil {
fmt
.
Println
(
"verySignByPublicKey err: "
,
err
)
//
fmt.Println("verySignByPublicKey err: ", err)
response
:=
new
(
base
.
ResponseDataWxNotice
)
//
response := new(base.ResponseDataWxNotice)
response
.
Code
=
"FAIL"
//
response.Code = "FAIL"
response
.
Message
=
"验证签名失败"
//
response.Message = "验证签名失败"
base
.
ResponseWxNotice
(
c
,
response
)
//
base.ResponseWxNotice(c, response)
return
//
return
}
//
}
fmt
.
Println
(
"验证签名成功"
)
//
fmt.Println("验证签名成功")
ph
:=
new
(
models
.
CashierNoticeInput
)
ph
:=
new
(
models
.
CashierNoticeInput
)
err
=
c
.
ShouldBindBodyWith
(
&
ph
,
binding
.
JSON
)
err
:
=
c
.
ShouldBindBodyWith
(
&
ph
,
binding
.
JSON
)
if
err
!=
nil
{
if
err
!=
nil
{
response
:=
new
(
base
.
ResponseDataWxNotice
)
response
:=
new
(
base
.
ResponseDataWxNotice
)
response
.
Code
=
"FAIL"
response
.
Code
=
"FAIL"
...
...
repository/pay/pay.go
View file @
921ac127
This diff is collapsed.
Click to expand it.
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