mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-05-10 15:44:58 +08:00
支付配置增加附加参数
This commit is contained in:
@@ -18,6 +18,7 @@ import java.util.concurrent.locks.ReentrantLock;
|
||||
*/
|
||||
public abstract class BasePayConfigStorage implements PayConfigStorage{
|
||||
|
||||
private volatile Object attach;
|
||||
/**
|
||||
* 证书管理器
|
||||
*/
|
||||
@@ -86,6 +87,15 @@ public abstract class BasePayConfigStorage implements PayConfigStorage{
|
||||
*/
|
||||
private boolean isCertSign = false;
|
||||
|
||||
@Override
|
||||
public Object getAttach() {
|
||||
return attach;
|
||||
}
|
||||
|
||||
public void setAttach(Object attach) {
|
||||
this.attach = attach;
|
||||
}
|
||||
|
||||
@Override
|
||||
public CertDescriptor getCertDescriptor() {
|
||||
if (!isCertSign){
|
||||
|
||||
@@ -15,6 +15,11 @@ import java.util.concurrent.locks.Lock;
|
||||
*/
|
||||
public interface PayConfigStorage {
|
||||
|
||||
/**
|
||||
* 附加支付配置
|
||||
* @return 附加信息
|
||||
*/
|
||||
Object getAttach();
|
||||
/**
|
||||
* 获取证书解释器
|
||||
* @return 证书解释器
|
||||
|
||||
Reference in New Issue
Block a user