重构修复部分代码

This commit is contained in:
Binary Wang 2016-09-01 21:58:28 +08:00
parent c7efcae635
commit 71709bbc36
2 changed files with 16 additions and 21 deletions

View File

@ -108,7 +108,6 @@ public class DefaultApacheHttpClientBuilder implements ApacheHttpClientBuilder {
.register("https", this.sslConnectionSocketFactory)
.build();
@SuppressWarnings("resource")
PoolingHttpClientConnectionManager connectionManager = new PoolingHttpClientConnectionManager(registry);
connectionManager.setMaxTotal(this.maxTotalConn);
connectionManager.setDefaultMaxPerRoute(this.maxConnPerHost);

View File

@ -157,7 +157,6 @@ public class WxCpServiceImpl implements WxCpService {
long timestamp = System.currentTimeMillis() / 1000;
String noncestr = RandomUtils.getRandomStr();
String jsapiTicket = getJsapiTicket(false);
try {
String signature = SHA1.genWithAmple(
"jsapi_ticket=" + jsapiTicket,
"noncestr=" + noncestr,
@ -174,9 +173,6 @@ public class WxCpServiceImpl implements WxCpService {
jsapiSignature.setAppid(this.wxCpConfigStorage.getCorpId());
return jsapiSignature;
} catch (NoSuchAlgorithmException e) {
throw new RuntimeException(e);
}
}
public void messageSend(WxCpMessage message) throws WxErrorException {