Skip to content
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

有的微信支付的回复消息验签失败,原因是你把回复消息转成了struct,字段就是固定的,而微信的回复消息可能会新增字段无法对应到你定义的struct里,导致验签失败,目前发现的有退款和退款查询,建议你改成map,否则要经常关注字段是否有变动 #43

Closed
alexz2008 opened this issue May 19, 2020 · 4 comments

Comments

@alexz2008
Copy link

No description provided.

@alexz2008 alexz2008 changed the title 有的微信支付的回复消息验签失败,原因是你把回复消息转成了struct,字段就是固定的,而微信的回复消息可能会新增字段无法对应到你定义的struct里,导致验签失败,目前发现的有退款和退款查询,建议你改成map,否则要经常关注字符是否有变动 有的微信支付的回复消息验签失败,原因是你把回复消息转成了struct,字段就是固定的,而微信的回复消息可能会新增字段无法对应到你定义的struct里,导致验签失败,目前发现的有退款和退款查询,建议你改成map,否则要经常关注字段是否有变动 May 19, 2020
@iGoogle-ink
Copy link
Member

iGoogle-ink commented May 19, 2020

@alexz2008
方便的话,题个 PR 吧,我确实不会实时知道哪些新字段,Map 的话,用起来不方便,虽然解决了接收的问题,但是取得时候都不知道有哪些字段

@iGoogle-ink
Copy link
Member

能提供一下 退款和退款查询时,同步返回的数据吗?我对比了一下,好像没什么问题,只是有些字段按编号增加的,我只增加了 0和1

@iGoogle-ink
Copy link
Member

已处理

@fxk2006
Copy link
Contributor

fxk2006 commented Jul 23, 2020

经测试,是微信支付的问题,异步通知固定MD5,千万别HMAC-SHA25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants