Skip to content
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

WxPayService#getConfig是否需要改进? WxPayConfigHolder是否有必要替换为生命周期更长的holder? #3432

Open
zhanyan-Ader1y opened this issue Dec 6, 2024 · 0 comments

Comments

@zhanyan-Ader1y
Copy link
Contributor

简要描述

在com.github.binarywang.wxpay.service.WxPayService接口中对多商户config的获取在#getConfig中只能通过ThreadLocal间接的获取. 该功能对于需要多商户管理的业务来说较为鸡肋 上下文重新初始化后依然是要重新构建config.

所以, 是否有必要将WxPayConfigHolder改为全局共享的生命周期跟随进程的holder?

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

No branches or pull requests

1 participant