mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-05-23 10:31:52 +08:00
微信V3版本接入直连接口,自测通过
This commit is contained in:
@@ -58,7 +58,7 @@ public abstract class BasePayService<PC extends PayConfigStorage> implements Pay
|
||||
* 支付消息拦截器
|
||||
*/
|
||||
protected List<PayMessageInterceptor<PayMessage, PayService>> interceptors = new ArrayList<PayMessageInterceptor<PayMessage, PayService>>();
|
||||
;
|
||||
|
||||
|
||||
/**
|
||||
* 设置支付配置
|
||||
@@ -101,9 +101,15 @@ public abstract class BasePayService<PC extends PayConfigStorage> implements Pay
|
||||
public BasePayService(PC payConfigStorage, HttpConfigStorage configStorage) {
|
||||
setPayConfigStorage(payConfigStorage);
|
||||
setRequestTemplateConfigStorage(configStorage);
|
||||
initAfter();
|
||||
}
|
||||
|
||||
/**
|
||||
* 初始化之后执行
|
||||
*/
|
||||
protected void initAfter(){
|
||||
|
||||
}
|
||||
/**
|
||||
* Generate a Base64 encoded String from user , password
|
||||
*
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.egzosn.pay.common.util;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
@@ -21,6 +23,9 @@ public class MapGen<K, V> {
|
||||
}
|
||||
|
||||
public MapGen<K, V> keyValue(K key, V value) {
|
||||
if (null == attr){
|
||||
attr = new LinkedHashMap<>();
|
||||
}
|
||||
attr.put(key, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -153,7 +153,7 @@ public class StringUtils {
|
||||
public static String joining(String separator, String... str) {
|
||||
StringBuilder builder = new StringBuilder();
|
||||
for (String s : str) {
|
||||
if (StringUtils.isEmpty(s)) {
|
||||
if (null == s) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user