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

APP支付随机串nonceStr不对 #1572

Closed
a529783903 opened this issue May 21, 2020 · 2 comments
Closed

APP支付随机串nonceStr不对 #1572

a529783903 opened this issue May 21, 2020 · 2 comments

Comments

@a529783903
Copy link

APP支付二次确认调起微信支付,nonceStr的随机串不能使用新生成的随机串,需要使用微信返回值的随机串,
BaseWxPayServiceImpl.java第280行;

调用支付使用的noncestr这个参数必须和商家服务器调用统一下单接口返回的那个noncestr一致

@a529783903 a529783903 changed the title APP支付对击穿nonceStr不对 APP支付随机串nonceStr不对 May 21, 2020
@binarywang
Copy link
Owner

欢迎直接提交PR。
另外,你说的280行现在已经不一样了,不知道是哪个版本的

@binarywang
Copy link
Owner

其实官方文档并没有强调这一点,这部分代码已经存在多年,相信很多人都在用,没发现问题。
不过为了避免以后微信文档和接口可能会发生变化而无法及时响应,对这部分代码做相应调整也不是不可以。

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

No branches or pull requests

2 participants