Skip to content

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

@zhanyan-Ader1y

Description

@zhanyan-Ader1y

简要描述

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

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

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions