Commit 7f3a745c by 孙龙

up

parent 298c78c9
Showing with 2 additions and 2 deletions
......@@ -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 ")
}
if !json.Valid([]byte(req.Header)){
if req.Header != "" && !json.Valid([]byte(req.Header)){
return errors.New("The field `header` is not json string ")
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment