mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-06-28 13:16:19 +08:00
🎨 优化代码
This commit is contained in:
parent
6c490e3295
commit
64f7adcc29
1
.gitignore
vendored
1
.gitignore
vendored
@ -50,3 +50,4 @@ sonar-project.properties
|
||||
|
||||
# STS
|
||||
.factorypath
|
||||
*.zip
|
||||
|
@ -24,7 +24,7 @@ public class WxCpDefaultConfigImpl implements WxCpConfigStorage, Serializable {
|
||||
|
||||
private volatile String token;
|
||||
protected volatile String accessToken;
|
||||
protected Lock accessTokenLock = new ReentrantLock();
|
||||
protected transient Lock accessTokenLock = new ReentrantLock();
|
||||
private volatile String aesKey;
|
||||
protected volatile Integer agentId;
|
||||
private volatile long expiresTime;
|
||||
@ -37,16 +37,16 @@ public class WxCpDefaultConfigImpl implements WxCpConfigStorage, Serializable {
|
||||
private volatile String httpProxyPassword;
|
||||
|
||||
private volatile String jsapiTicket;
|
||||
protected Lock jsapiTicketLock = new ReentrantLock();
|
||||
protected transient Lock jsapiTicketLock = new ReentrantLock();
|
||||
private volatile long jsapiTicketExpiresTime;
|
||||
|
||||
private volatile String agentJsapiTicket;
|
||||
protected Lock agentJsapiTicketLock = new ReentrantLock();
|
||||
protected transient Lock agentJsapiTicketLock = new ReentrantLock();
|
||||
private volatile long agentJsapiTicketExpiresTime;
|
||||
|
||||
private volatile File tmpDirFile;
|
||||
|
||||
private volatile ApacheHttpClientBuilder apacheHttpClientBuilder;
|
||||
private transient volatile ApacheHttpClientBuilder apacheHttpClientBuilder;
|
||||
|
||||
private volatile String baseApiUrl;
|
||||
|
||||
@ -297,4 +297,9 @@ public class WxCpDefaultConfigImpl implements WxCpConfigStorage, Serializable {
|
||||
public void setApacheHttpClientBuilder(ApacheHttpClientBuilder apacheHttpClientBuilder) {
|
||||
this.apacheHttpClientBuilder = apacheHttpClientBuilder;
|
||||
}
|
||||
|
||||
public WxCpDefaultConfigImpl setWebhookKey(String webhookKey) {
|
||||
this.webhookKey = webhookKey;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user