We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
notifyReq, err := wechat.ParseNotifyToBodyMap(ctx.Request) // 验签操作 ok, err := wechat.VerifySign(apiKey, wechat.SignType_MD5, notifyReq)
log.Println(ok) // false log.Println(err) //
这是什么操作??????
The text was updated successfully, but these errors were encountered:
一个是 sdk 使用异常(error),一个是 sdk 正常情况下验签的结果(true / false)
Sorry, something went wrong.
@ysongyang 可以看一下源码,error是业务处理 error,判断error不为空,再判断 ok 是否 为 true
问题已解决~~~
No branches or pull requests
notifyReq, err := wechat.ParseNotifyToBodyMap(ctx.Request)
// 验签操作
ok, err := wechat.VerifySign(apiKey, wechat.SignType_MD5, notifyReq)
log.Println(ok) // false
log.Println(err) //
这是什么操作??????
The text was updated successfully, but these errors were encountered: