Skip to content

Conversation

@YaCoHuang
Copy link
Contributor

fix: #3757

@binarywang binarywang requested a review from Copilot November 12, 2025 05:31
Copilot finished reviewing on behalf of binarywang November 12, 2025 05:32
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 修复了一个 Bug:当只设置 privateCertStringPrivateCertContent 时,certSerialNo 没有被正确生成。

主要变更:

  • 修正了 WxPayConfig.java 中证书序列号提取的条件判断逻辑
  • 统一了公钥路径检查的判断方式,使用 StringUtils.isNotBlank() 替代 null 检查
  • 添加了测试用例以验证修复

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
WxPayConfig.java 修复了证书序列号提取的条件判断逻辑,并统一了公钥路径的空值检查方式
BaseWxPayServiceImplTest.java 添加了新的测试用例,用于验证从 PrivateCertContent 或 PrivateCertString 提取证书序列号的功能

…ice/impl/BaseWxPayServiceImplTest.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@binarywang binarywang merged commit b94106f into binarywang:develop Nov 12, 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.

【微信支付】只设置privateCertString或PrivateCertContent导致certSerialNo没有生成

2 participants