Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 5, 2025

运营工具-商家转账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.

Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix transfer bills endpoint path for API 修复商家转账API路径错误:移除多余的operation段 Dec 5, 2025
Copilot AI requested a review from binarywang December 5, 2025 04:52
@binarywang binarywang marked this pull request as ready for review December 5, 2025 08:17
Copilot AI review requested due to automatic review settings December 5, 2025 08:17
@binarywang binarywang merged commit ddcdf65 into develop Dec 5, 2025
5 checks passed
Copy link

Copilot AI left a 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 调用路径,确保与官方文档一致

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants