版本升级2.10.1.

1.支付宝转账签名遗漏bug
2.增加http连接池
3.XXE漏洞修复
4.必要的地方增加日志
This commit is contained in:
egan
2018-07-06 13:54:09 +08:00
parent b3d91e1385
commit a6dd8b1976
13 changed files with 31 additions and 22 deletions

View File

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