Merged
Conversation
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
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] Add configuration for multiple Weixin accounts
新增:微信支付多公众号关联配置支持
Jan 9, 2026
Owner
|
auggie review |
🤖 Augment PR Summary总结:本 PR 为 变更点:
技术说明:多配置通过 🤖 Was this summary useful? React with 👍 or 👎 |
...-starters/wx-java-pay-multi-spring-boot-starter/src/main/resources/META-INF/spring.factories
Show resolved
Hide resolved
...r/src/main/java/com/binarywang/spring/starter/wxjava/pay/service/WxPayMultiServicesImpl.java
Show resolved
Hide resolved
...r/src/main/java/com/binarywang/spring/starter/wxjava/pay/service/WxPayMultiServicesImpl.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Pull request overview
本 Pull Request 新增了 wx-java-pay-multi-spring-boot-starter 模块,为 WxJava 项目提供微信支付多公众号关联配置支持。该功能允许开发者在单个应用中为多个公众号配置独立的微信支付服务,解决了服务商或多公众号系统的支付场景需求。
主要变更包括:
- 新增支持多配置的 Spring Boot Starter 模块,提供基于 Map 的配置管理
- 实现懒加载服务创建机制,通过
ConcurrentHashMap.computeIfAbsent()保证线程安全 - 提供完整的配置示例、单元测试和使用文档
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| spring-boot-starters/pom.xml | 在父 POM 中添加新模块 wx-java-pay-multi-spring-boot-starter |
| spring-boot-starters/wx-java-pay-multi-spring-boot-starter/pom.xml | 新模块的 Maven 配置,包含依赖和构建插件 |
| spring-boot-starters/wx-java-pay-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/pay/config/WxPayMultiAutoConfiguration.java | Spring Boot 自动配置类,负责注册多服务管理器 |
| spring-boot-starters/wx-java-pay-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/pay/properties/WxPayMultiProperties.java | 多配置属性类,定义配置前缀和存储结构 |
| spring-boot-starters/wx-java-pay-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/pay/properties/WxPaySingleProperties.java | 单个公众号配置属性类,包含所有微信支付相关配置项 |
| spring-boot-starters/wx-java-pay-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/pay/service/WxPayMultiServices.java | 多服务管理接口,定义获取和移除服务方法 |
| spring-boot-starters/wx-java-pay-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/pay/service/WxPayMultiServicesImpl.java | 多服务管理实现类,提供线程安全的懒加载服务创建 |
| spring-boot-starters/wx-java-pay-multi-spring-boot-starter/src/main/resources/META-INF/spring.factories | Spring Boot 自动配置注册文件 |
| spring-boot-starters/wx-java-pay-multi-spring-boot-starter/src/test/java/com/binarywang/spring/starter/wxjava/pay/WxPayMultiServicesTest.java | 单元测试,验证配置加载和服务管理功能 |
| spring-boot-starters/wx-java-pay-multi-spring-boot-starter/src/test/java/com/binarywang/spring/starter/wxjava/pay/example/WxPayMultiExample.java | 详细的使用示例代码,涵盖常见支付场景 |
| spring-boot-starters/wx-java-pay-multi-spring-boot-starter/README.md | 完整的使用文档,包含配置说明、示例和常见问题 |
...arter/src/main/java/com/binarywang/spring/starter/wxjava/pay/service/WxPayMultiServices.java
Show resolved
Hide resolved
Owner
|
@copilot apply changes based on the comments in this thread |
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
bbc138a to
30914f3
Compare
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.
修复内容
根据代码审查反馈,在 README.md 的使用示例中添加了缺失的 import 语句。
变更详情
WxPayOrderQueryV3Result的导入声明修改文件
spring-boot-starters/wx-java-pay-multi-spring-boot-starter/README.md验证
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.