Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tiantianlikeu committed Jun 26, 2023
1 parent b013f0b commit 0ca3784
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions gin_wechat_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,12 @@ func GetWxMsg(c *gin.Context, wxCtx *context.Context, skip bool) (ginWxMsg *GinW
return nil, errors.New("签名校验失败")
}

// echostr, exists := c.GetQuery("echostr")
// if exists {
// ReulstString(c, echostr)
// return nil, nil
// }
// 如果是签名校验,则原样返回echostr
echostr, exists := c.GetQuery("echostr")
if exists {
ReulstString(c, echostr)
return nil, nil
}

msg, err = getMessage(ginWxMsg)
if err != nil {
Expand Down

0 comments on commit 0ca3784

Please sign in to comment.