|
@@ -115,6 +115,7 @@ public class WeiXinUserUtil {
|
|
String token = this.getToken(appId, appSecret).getAccessToken();
|
|
String token = this.getToken(appId, appSecret).getAccessToken();
|
|
redisCacheUtil.setCacheObject(appId, token);
|
|
redisCacheUtil.setCacheObject(appId, token);
|
|
redisCacheUtil.expire(appId, 7200, TimeUnit.SECONDS);
|
|
redisCacheUtil.expire(appId, 7200, TimeUnit.SECONDS);
|
|
|
|
+ tokenCache = token;
|
|
logger.info("Redis缓存中token信息: " + tokenCache);
|
|
logger.info("Redis缓存中token信息: " + tokenCache);
|
|
}else {
|
|
}else {
|
|
tokenCache = redisCacheUtil.getCacheObject(appId);
|
|
tokenCache = redisCacheUtil.getCacheObject(appId);
|