修复商家转账API路径错误:移除多余的operation段 by Copilot · Pull Request #3797 · binarywang/WxJava
运营工具-商家转账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.