修复 fullPublicKeyModel 配置在 Spring Boot Starter 和 Solon 插件中无效的问题#3785
Merged
binarywang merged 3 commits intodevelopfrom Dec 3, 2025
Merged
修复 fullPublicKeyModel 配置在 Spring Boot Starter 和 Solon 插件中无效的问题#3785binarywang merged 3 commits intodevelopfrom
binarywang merged 3 commits intodevelopfrom
Conversation
…trictlyNeedWechatPaySerial 属性支持 Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix signature verification when using fullPublicKeyModel
修复 fullPublicKeyModel 配置在 Spring Boot Starter 和 Solon 插件中无效的问题
Nov 28, 2025
There was a problem hiding this comment.
Pull request overview
此 PR 修复了 fullPublicKeyModel 和 strictlyNeedWechatPaySerial 配置项在 Spring Boot Starter 和 Solon 插件中缺失的问题。这两个配置项对于控制微信支付 V3 接口的验签行为至关重要,特别是 fullPublicKeyModel 用于启用完全公钥模式,避免调用平台证书下载接口。
- 在 Spring Boot Starter 和 Solon 插件的 WxPayProperties 类中添加了缺失的配置属性
- 在对应的 WxPayAutoConfiguration 类中添加了属性到 WxPayConfig 的正确映射
- Solon 插件额外补充了其他之前缺失的配置项(notifyUrl、payScorePermissionNotifyUrl、publicKeyId、publicKeyPath、apiHostUrl)
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| spring-boot-starters/wx-java-pay-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/pay/properties/WxPayProperties.java | 添加 strictlyNeedWechatPaySerial 和 fullPublicKeyModel 两个布尔配置属性,默认值为 false |
| spring-boot-starters/wx-java-pay-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/pay/config/WxPayAutoConfiguration.java | 在 wxPayService() 方法中添加新属性到 WxPayConfig 的映射逻辑 |
| solon-plugins/wx-java-pay-solon-plugin/src/main/java/com/binarywang/solon/wxjava/pay/properties/WxPayProperties.java | 添加 strictlyNeedWechatPaySerial、fullPublicKeyModel 以及其他缺失的配置项(notifyUrl、payScorePermissionNotifyUrl、publicKeyId、publicKeyPath、apiHostUrl) |
| solon-plugins/wx-java-pay-solon-plugin/src/main/java/com/binarywang/solon/wxjava/pay/config/WxPayAutoConfiguration.java | 在 wxPayService() 方法中添加所有新配置项到 WxPayConfig 的映射逻辑 |
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fullPublicKeyModel和strictlyNeedWechatPaySerial配置项在 Spring Boot Starter 和 Solon 插件中缺失,导致用户通过配置文件设置完全公钥模式后仍会调用平台证书下载接口。修复内容
Spring Boot Starter (
wx-java-pay-spring-boot-starter)WxPayProperties添加strictlyNeedWechatPaySerial和fullPublicKeyModel属性WxPayAutoConfiguration添加属性到WxPayConfig的映射Solon 插件 (
wx-java-pay-solon-plugin)WxPayProperties添加缺失的配置项:notifyUrl、payScorePermissionNotifyUrl、publicKeyId、publicKeyPath、apiHostUrl、strictlyNeedWechatPaySerial、fullPublicKeyModelWxPayAutoConfiguration添加所有新属性的映射使用示例
Original prompt
💡 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.