Skip to content

fix: 修复请求仿真测试系统的验签密钥ContentType#3745

Merged
binarywang merged 2 commits intobinarywang:developfrom
AcceptMediocrity:develop
Oct 28, 2025
Merged

fix: 修复请求仿真测试系统的验签密钥ContentType#3745
binarywang merged 2 commits intobinarywang:developfrom
AcceptMediocrity:develop

Conversation

@AcceptMediocrity
Copy link
Contributor

No description provided.

@binarywang binarywang requested a review from Copilot October 27, 2025 03:58
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 修复了请求微信仿真测试系统时验签密钥接口的 Content-Type 问题。主要变更是在多个 HTTP 实现类中添加了支持自定义 MIME 类型的 post 方法重载版本,并在获取沙箱签名密钥时使用正确的 application/xml Content-Type。

主要变更

  • WxPayService 接口中新增了带 mimeType 参数的 post 方法签名
  • 在三个 HTTP 客户端实现类中实现了该方法
  • 修复了 getSandboxSignKey() 方法,使用正确的 Content-Type 调用沙箱签名密钥接口

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
WxPayService.java 在接口中新增了支持自定义 MIME 类型的 post 方法签名,并补充了文档说明
BaseWxPayServiceImpl.java 在 getSandboxSignKey 方法中使用新的 post 重载版本,传入正确的 XML Content-Type
WxPayServiceJoddHttpImpl.java 实现了支持自定义 MIME 类型的 post 方法和对应的 HTTP 请求构建逻辑
WxPayServiceHttpComponentsImpl.java 实现了支持自定义 MIME 类型的 post 方法和对应的 HTTP 请求构建逻辑
WxPayServiceApacheHttpImpl.java 实现了支持自定义 MIME 类型的 post 方法和对应的 HTTP 请求构建逻辑

…ice/impl/WxPayServiceHttpComponentsImpl.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Repository owner deleted a comment from Copilot AI Oct 27, 2025
@binarywang binarywang merged commit b26c786 into binarywang:develop Oct 28, 2025
@binarywang binarywang added this to the 4.7.9 milestone Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants