public final class ResponseHandle extends Object
| Constructor and Description |
|---|
ResponseHandle(WechatConfig wechatConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
init() |
String |
requestWithCert(String urlSuffix,
Map<String,String> reqData,
int connectTimeoutMs,
int readTimeoutMs)
需要证书的请求
|
String |
requestWithoutCert(String urlSuffix,
Map<String,String> reqData,
int connectTimeoutMs,
int readTimeoutMs)
不需要证书的请求
|
public ResponseHandle(WechatConfig wechatConfig)
@PostConstruct public void init()
public String requestWithoutCert(String urlSuffix, Map<String,String> reqData, int connectTimeoutMs, int readTimeoutMs) throws Exception
urlSuffix - StringreqData - 向wxpay post的请求数据connectTimeoutMs - 超时时间,单位是毫秒readTimeoutMs - 超时时间,单位是毫秒ExceptionCopyright © 2021 Clouds Studio. All rights reserved.