Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 64f7adc

Browse filesBrowse files
committed
🎨 优化代码
1 parent 6c490e3 commit 64f7adc
Copy full SHA for 64f7adc

File tree

Expand file treeCollapse file tree

3 files changed

+10
-4
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+10
-4
lines changed

‎.gitignore

Copy file name to clipboardExpand all lines: .gitignore
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,4 @@ sonar-project.properties
5050

5151
# STS
5252
.factorypath
53+
*.zip

‎weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpDefaultConfigImpl.java

Copy file name to clipboardExpand all lines: weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpDefaultConfigImpl.java
+9-4Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class WxCpDefaultConfigImpl implements WxCpConfigStorage, Serializable {
2424

2525
private volatile String token;
2626
protected volatile String accessToken;
27-
protected Lock accessTokenLock = new ReentrantLock();
27+
protected transient Lock accessTokenLock = new ReentrantLock();
2828
private volatile String aesKey;
2929
protected volatile Integer agentId;
3030
private volatile long expiresTime;
@@ -37,16 +37,16 @@ public class WxCpDefaultConfigImpl implements WxCpConfigStorage, Serializable {
3737
private volatile String httpProxyPassword;
3838

3939
private volatile String jsapiTicket;
40-
protected Lock jsapiTicketLock = new ReentrantLock();
40+
protected transient Lock jsapiTicketLock = new ReentrantLock();
4141
private volatile long jsapiTicketExpiresTime;
4242

4343
private volatile String agentJsapiTicket;
44-
protected Lock agentJsapiTicketLock = new ReentrantLock();
44+
protected transient Lock agentJsapiTicketLock = new ReentrantLock();
4545
private volatile long agentJsapiTicketExpiresTime;
4646

4747
private volatile File tmpDirFile;
4848

49-
private volatile ApacheHttpClientBuilder apacheHttpClientBuilder;
49+
private transient volatile ApacheHttpClientBuilder apacheHttpClientBuilder;
5050

5151
private volatile String baseApiUrl;
5252

@@ -297,4 +297,9 @@ public String getWebhookKey() {
297297
public void setApacheHttpClientBuilder(ApacheHttpClientBuilder apacheHttpClientBuilder) {
298298
this.apacheHttpClientBuilder = apacheHttpClientBuilder;
299299
}
300+
301+
public WxCpDefaultConfigImpl setWebhookKey(String webhookKey) {
302+
this.webhookKey = webhookKey;
303+
return this;
304+
}
300305
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.