Browse Source

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

dev1
007gzs 5 years ago
committed by GitHub
parent
commit
1a8ec43d26
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenServiceAbstractImpl.java

+ 1
- 1
weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenServiceAbstractImpl.java 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);


Loading…
Cancel
Save