-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
New issue
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
消息加密参数 #84
Comments
不太明白你的意思,“发现微信的 signature是用token,timestamp和noncestr三个参数计算的,与其文档里的说明并不一致” 这句话怎么理解? |
我感觉你应该是概念上有所混淆导致这个问题,WxCryptUtil是消息加密用的,而signature是校验消息来源的,不是一个东西 |
`
|
你确实是搞错了,signature那个是验证消息是否是微信服务器发送过来用的。建议你参考下demo中的实现方法,具体看首页中提供的几个demo即可,或者看wiki中的相关内容 |
是的,是我搞错了。这个位置,我应该使用msg_signature。在向微信测试号的请求里,并没有msg_signature这个参数。哭 |
首先,在处理微信通知消息时,报了这个错误:
WARN RootController:186 - 加密消息签名校验失败
发现微信的 signature是用token,timestamp和noncestr三个参数计算的,与其文档里的说明并不一致。而我们的WxCryptUtl.decrypt方法内,是按照文档里实现的。
The text was updated successfully, but these errors were encountered: