🐛 #1424 修复开放平台execute方法加同步锁导致的并发性能问题

This commit is contained in:
007gzs 2020-04-04 15:47:22 +08:00 committed by GitHub
parent 2cd362dc40
commit 1a8ec43d26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,7 @@ public abstract class WxOpenServiceAbstractImpl<H, P> implements WxOpenService,
*/
public abstract void initHttp();
protected synchronized <T, E> T execute(RequestExecutor<T, E> executor, String uri, E data) throws WxErrorException {
protected <T, E> T execute(RequestExecutor<T, E> executor, String uri, E data) throws WxErrorException {
try {
T result = executor.execute(uri, data, WxType.Open);
this.log.debug("\n【请求地址】: {}\n【请求参数】{}\n【响应数据】{}", uri, data, result);