Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
golang-callback
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7f3a745c
authored
Jul 06, 2021
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
up
parent
298c78c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
app/service/http/service.go
app/service/http/service.go
View file @
7f3a745c
...
@@ -76,11 +76,11 @@ func Callback(ctx *gin.Context) (err error){
...
@@ -76,11 +76,11 @@ func Callback(ctx *gin.Context) (err error){
}
}
if
!
json
.
Valid
([]
byte
(
req
.
Data
)){
if
req
.
Data
!=
""
&&
!
json
.
Valid
([]
byte
(
req
.
Data
)){
return
errors
.
New
(
"The field `data` is not json string "
)
return
errors
.
New
(
"The field `data` is not json string "
)
}
}
if
!
json
.
Valid
([]
byte
(
req
.
Header
)){
if
req
.
Header
!=
""
&&
!
json
.
Valid
([]
byte
(
req
.
Header
)){
return
errors
.
New
(
"The field `header` is not json string "
)
return
errors
.
New
(
"The field `header` is not json string "
)
}
}
...
...
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