-
-
Notifications
You must be signed in to change notification settings - Fork 9k
新增:微信支付多公众号关联配置支持 #3842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
新增:微信支付多公众号关联配置支持 #3842
Conversation
Co-authored-by: binarywang <[email protected]>
Co-authored-by: binarywang <[email protected]>
Co-authored-by: binarywang <[email protected]>
|
auggie review |
🤖 Augment PR Summary总结:本 PR 为 变更点:
技术说明:多配置通过 🤖 Was this summary useful? React with 👍 or 👎 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...-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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...r/src/main/java/com/binarywang/spring/starter/wxjava/pay/service/WxPayMultiServicesImpl.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
|
@copilot apply changes based on the comments in this thread |
Co-authored-by: binarywang <[email protected]>
bbc138a to
30914f3
Compare
修复内容
根据代码审查反馈,在 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.