|
|
@@ -1,5 +1,7 @@ |
|
|
|
package me.chanjar.weixin.mp.api; |
|
|
|
|
|
|
|
import java.io.File; |
|
|
|
|
|
|
|
import me.chanjar.weixin.common.bean.WxAccessToken; |
|
|
|
|
|
|
|
/** |
|
|
@@ -11,8 +13,8 @@ public class WxMpInMemoryConfigStorage implements WxMpConfigStorage { |
|
|
|
|
|
|
|
protected volatile String appId; |
|
|
|
protected volatile String secret; |
|
|
|
protected volatile String partnerId; |
|
|
|
protected volatile String partnerKey; |
|
|
|
protected volatile String partnerId; |
|
|
|
protected volatile String partnerKey; |
|
|
|
protected volatile String token; |
|
|
|
protected volatile String accessToken; |
|
|
|
protected volatile String aesKey; |
|
|
@@ -28,6 +30,11 @@ public class WxMpInMemoryConfigStorage implements WxMpConfigStorage { |
|
|
|
protected volatile String jsapiTicket; |
|
|
|
protected volatile long jsapiTicketExpiresTime; |
|
|
|
|
|
|
|
/** |
|
|
|
* 临时文件目录 |
|
|
|
*/ |
|
|
|
protected volatile File tmpDirFile; |
|
|
|
|
|
|
|
public String getAccessToken() { |
|
|
|
return this.accessToken; |
|
|
|
} |
|
|
@@ -181,6 +188,7 @@ public class WxMpInMemoryConfigStorage implements WxMpConfigStorage { |
|
|
|
", http_proxy_password='" + http_proxy_password + '\'' + |
|
|
|
", jsapiTicket='" + jsapiTicket + '\'' + |
|
|
|
", jsapiTicketExpiresTime='" + jsapiTicketExpiresTime + '\'' + |
|
|
|
", tmpDirFile='" + tmpDirFile + '\'' + |
|
|
|
'}'; |
|
|
|
} |
|
|
|
|
|
|
@@ -201,4 +209,9 @@ public class WxMpInMemoryConfigStorage implements WxMpConfigStorage { |
|
|
|
public void setPartnerKey(String partnerKey) { |
|
|
|
this.partnerKey = partnerKey; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public File getTmpDirFile() { |
|
|
|
return this.getTmpDirFile(); |
|
|
|
} |
|
|
|
} |