分析:createOrderV3 调用时触发 complaint-notifications 请求不是 SDK 问题 #3783
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.
问题分析
用户报告调用
createOrderV3时日志显示额外请求了complaint-notifications接口并返回"数据查询结果为空"错误。经分析,这不是 SDK 的 bug。根因
如维护者评论所指:用户代码可能序列化了
WxPayService对象。createOrderV3方法链中不存在任何对complaint-notifications的调用ComplaintServiceImpl仅在显式调用时发起请求BaseWxPayServiceImpl服务初始化只创建对象,不触发 API 调用用户代码中使用了
AopContext.currentProxy()和JSON.toJSONString(),某些序列化库会触发所有 getter 方法,导致意外调用getComplaintsService()及相关方法。建议用户
结论
无需代码修改。建议关闭 issue 并告知用户检查代码实现。
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.