mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-05-18 04:27:38 +08:00
版本升级2.10.1.
1.支付宝转账签名遗漏bug 2.增加http连接池 3.XXE漏洞修复 4.必要的地方增加日志
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package com.egzosn.pay.common.http;
|
||||
|
||||
import com.egzosn.pay.common.bean.MethodType;
|
||||
import com.egzosn.pay.common.bean.result.PayException;
|
||||
import com.egzosn.pay.common.exception.PayErrorException;
|
||||
import com.egzosn.pay.common.util.str.StringUtils;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
@@ -332,11 +334,11 @@ public class HttpRequestTemplate {
|
||||
try (CloseableHttpResponse response = getHttpClient().execute(httpRequest)) {
|
||||
return httpRequest.handleResponse(response);
|
||||
}catch (IOException e){
|
||||
e.printStackTrace();
|
||||
throw new PayErrorException(new PayException("IOException", e.getLocalizedMessage()));
|
||||
}finally {
|
||||
httpRequest.releaseConnection();
|
||||
}
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user