#844 整合优化ticket管理相关接口代码,方便获取sdk_ticket、jsapi_ticket和card_api_ticket等。

This commit is contained in:
Binary Wang
2018-11-18 15:45:02 +08:00
parent 1cd06082aa
commit 49633cd123
11 changed files with 369 additions and 443 deletions

View File

@@ -11,6 +11,7 @@ import cn.binarywang.wx.miniapp.config.WxMaConfig;
import me.chanjar.weixin.common.bean.WxAccessToken;
import me.chanjar.weixin.common.util.http.apache.ApacheHttpClientBuilder;
import me.chanjar.weixin.mp.api.WxMpConfigStorage;
import me.chanjar.weixin.mp.enums.TicketType;
import me.chanjar.weixin.open.api.WxOpenConfigStorage;
import me.chanjar.weixin.open.bean.WxOpenAuthorizerAccessToken;
import me.chanjar.weixin.open.bean.WxOpenComponentAccessToken;
@@ -322,6 +323,31 @@ public class WxOpenInMemoryConfigStorage implements WxOpenConfigStorage {
wxOpenConfigStorage.updateAuthorizerAccessToken(appId, accessToken, expiresInSeconds);
}
@Override
public String getTicket(TicketType type) {
return null;
}
@Override
public Lock getTicketLock(TicketType type) {
return null;
}
@Override
public boolean isTicketExpired(TicketType type) {
return false;
}
@Override
public void expireTicket(TicketType type) {
}
@Override
public void updateTicket(TicketType type, String ticket, int expiresInSeconds) {
}
@Override
public String getAppid() {
return this.appId;