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