提交 53aa2f4f 编写于 作者: J Javen205

新增移除所有配置方法

上级 03560cd6
......@@ -4,7 +4,6 @@ package com.ijpay.unionpay;
import cn.hutool.core.util.StrUtil;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
/**
......@@ -50,21 +49,6 @@ public class UnionPayApiConfigKit {
return removeApiConfig(UnionPayApiConfig.getMchId());
}
/**
* 移除所有支付配置
*
* @return 是否移除成功
*/
public static boolean removeAllApiConfig() {
Set<String> keySet = CFG_MAP.keySet();
for (String str : keySet) {
System.out.println(str);
CFG_MAP.remove(str);
}
removeThreadLocalMchId();
return true;
}
public static UnionPayApiConfig removeApiConfig(String mchId) {
return CFG_MAP.remove(mchId);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册