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

公钥模式支付回调,解析数据会出现 非法请求,头部信息验证失败 #3518

Open
xiexianwei opened this issue Mar 4, 2025 · 1 comment

Comments

@xiexianwei
Copy link

xiexianwei commented Mar 4, 2025

模块版本情况

  • WxJava 模块名: weixin-java-pay
  • WxJava 版本号:4.7.2.B

详细描述
公钥模式支付回调,解析数据会出现 非法请求,头部信息验证失败
BaseWxPayServiceImpl.baseParseOrderNotifyV3Result方法里面

if ( Objects.nonNull( header ) && !this.verifyNotifySign( header, notifyData ) ) {
throw new WxPayException("非法请求,头部信息验证失败");
}

this.verifyNotifySign(header, notifyData)这个方法校验失败返回了false

@tanglhui
Copy link

tanglhui commented Mar 6, 2025

请问你这个问题有解决吗

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

2 participants