FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

修复商家转账API路径错误:移除多余的operation段 by Copilot · Pull Request #3797 · binarywang/WxJava · GitHub

修复商家转账API路径错误:移除多余的operation段 - #3797

Merged
binarywang merged 2 commits into
developfrom
copilot/fix-transfer-bills-endpoint
Dec 5, 2025
Merged

修复商家转账API路径错误:移除多余的operation段#3797
binarywang merged 2 commits into
developfrom
copilot/fix-transfer-bills-endpoint

Conversation

Copilot AI commented Dec 5, 2025
edited
Loading

Copy link
Copy Markdown
Contributor

运营工具-商家转账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 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 merged commit ddcdf65 into develop Dec 5, 2025
5 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

binarywang added this to the 4.8.0 milestone Dec 10, 2025
binarywang deleted the copilot/fix-transfer-bills-endpoint branch March 10, 2026 03:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants


Back | FazBrowse Home | New Git URL