Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
修复当开发者使用微信支付V3 API的JSON格式通知数据调用
parseOrderNotifyResult方法时出现的解析错误问题。问题描述:
在使用Spring Boot 3.4.2配合WxJava 4.7.7.B时,调用
parseOrderNotifyResult处理V3版本的JSON通知数据会报错:错误原因:
{"id": "...", "resource_type": "encrypt-resource", ...}<xml><appid>...</appid>...</xml>解决方案:
在
parseOrderNotifyResult方法中添加数据格式检测逻辑:{开头(JSON格式)WxPayException:使用示例:
此改动为从V2迁移到V3微信支付API的开发者提供了即时帮助,将晦涩的解析错误替换为可操作的指导信息。
修复 #3699
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.