GeezerVison is showing github.com — 修复商家转账API路径错误:移除多余的operation段 by Copilot · Pull Request #3797 · binarywang/WxJava
Conversation
Copilot
AI
commented
Dec 5, 2025
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
运营工具-商家转账API使用了错误的路径 /v3/fund-app/operation/mch-transfer/transfer-bills,与微信官方文档不符。正确路径应为 /v3/fund-app/mch-transfer/transfer-bills。
修改内容
BusinessOperationTransferService.java
- 修正接口文档中的4处API路径注释
- 发起转账:
POST /v3/fund-app/mch-transfer/transfer-bills
- 商户单号查询:
GET /v3/fund-app/mch-transfer/transfer-bills/out-bill-no/{out_bill_no}
- 微信单号查询:
GET /v3/fund-app/mch-transfer/transfer-bills/transfer-bill-no/{transfer_bill_no}
BusinessOperationTransferServiceImpl.java
- 修正3个方法中的实际API调用路径
createOperationTransfer()
queryOperationTransferByOutBillNo()
queryOperationTransferByTransferBillNo()
所有路径现已与 TransferService 中的新版API路径保持一致。
// 修改前
String url = String.format("%s/v3/fund-app/operation/mch-transfer/transfer-bills", ...);
// 修改后
String url = String.format("%s/v3/fund-app/mch-transfer/transfer-bills", ...);
Original prompt
This section details on the original issue you should resolve
<issue_title>/v3/fund-app/operation/mch-transfer/transfer-bills 与微信支付官方文档中记录的发起转账接口路径 不一致。根据知识手册,正确接口路径为 /v3/fund-app/mch-transfer/transfer-bills,用于普通商户发起转账请求。 </issue_title>
<issue_description>/v3/fund-app/operation/mch-transfer/transfer-bills 与微信支付官方文档中记录的发起转账接口路径 不一致。根据知识手册,正确接口路径为 /v3/fund-app/mch-transfer/transfer-bills,用于普通商户发起转账请求。 @binarywang 是不是api端点有误。
Originally posted by @jjianga in #3689 (comment)
</issue_description>
Comments on the Issue (you are @copilot in this section)
Custom agent used: 全部用中文
需要用中文,包括PR标题和分析总结过程
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Copilot
AI
changed the title
[WIP] Fix transfer bills endpoint path for API
修复商家转账API路径错误:移除多余的operation段
Dec 5, 2025
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
此 PR 修复了运营工具商家转账 API 的路径错误问题。原代码使用了错误的路径 /v3/fund-app/operation/mch-transfer/transfer-bills(包含多余的 operation 段),与微信支付官方文档不符。修改后的路径 /v3/fund-app/mch-transfer/transfer-bills 与官方文档保持一致,并与 TransferService 中的新版 API 路径规范统一。
主要变更:
- 修正了
BusinessOperationTransferService 接口中 4 处 JavaDoc 注释中的 API 路径文档
- 修正了
BusinessOperationTransferServiceImpl 实现类中 3 个方法的实际 API 调用路径
- 确保所有转账相关接口(发起转账、商户单号查询、微信单号查询)使用正确的 API 端点
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File |
Description |
| BusinessOperationTransferService.java |
更新接口文档注释中的 4 处 API 路径,移除多余的 operation 段 |
| BusinessOperationTransferServiceImpl.java |
修正 3 个方法中的实际 API 调用路径,确保与官方文档一致 |
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
binarywang
Awaiting requested review from binarywang
Uh oh!
There was an error while loading. Please reload this page.
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.