Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 28, 2025

fullPublicKeyModelstrictlyNeedWechatPaySerial 配置项在 Spring Boot Starter 和 Solon 插件中缺失,导致用户通过配置文件设置完全公钥模式后仍会调用平台证书下载接口。

修复内容

  • Spring Boot Starter (wx-java-pay-spring-boot-starter)

    • WxPayProperties 添加 strictlyNeedWechatPaySerialfullPublicKeyModel 属性
    • WxPayAutoConfiguration 添加属性到 WxPayConfig 的映射
  • Solon 插件 (wx-java-pay-solon-plugin)

    • WxPayProperties 添加缺失的配置项:notifyUrlpayScorePermissionNotifyUrlpublicKeyIdpublicKeyPathapiHostUrlstrictlyNeedWechatPaySerialfullPublicKeyModel
    • WxPayAutoConfiguration 添加所有新属性的映射

使用示例

wx:
  pay:
    mch-id: 商户号
    apiv3-key: APIv3密钥
    private-key-path: classpath:cert/apiclient_key.pem
    public-key-id: 公钥ID
    public-key-path: classpath:cert/pub_key.pem
    full-public-key-model: true
    strictly-need-wechat-pay-serial: true
Original prompt

This section details on the original issue you should resolve

<issue_title>开启了fullPublicKeyModel构建验签器的时候还是有些走了兼容证书和公钥的验签器,没走完全公钥验签器</issue_title>
<issue_description>Image已经开启完全公钥模式了,但是还是有调用获取平台证书接口</issue_description>

Comments on the Issue (you are @copilot in this section)

@binarywang @Molzx @binarywang @SynchPj

Custom agent used: 全部用中文
需要用中文,包括PR标题和分析总结过程


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Fix signature verification when using fullPublicKeyModel 修复 fullPublicKeyModel 配置在 Spring Boot Starter 和 Solon 插件中无效的问题 Nov 28, 2025
Copilot AI requested a review from binarywang November 28, 2025 14:10
Copilot finished work on behalf of binarywang November 28, 2025 14:10
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.

开启了fullPublicKeyModel构建验签器的时候还是有些走了兼容证书和公钥的验签器,没走完全公钥验签器

2 participants