微信V3版本接入直连接口,自测通过

This commit is contained in:
egzosn
2021-10-04 18:45:50 +08:00
parent b731154e68
commit 1b10bbd787
21 changed files with 1025 additions and 62 deletions

View File

@@ -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
*

View File

@@ -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;
}

View File

@@ -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;
}