jk-GitHub-coder 4 年之前
父节点
当前提交
12811b0aef
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      YijiaRestful/src/main/java/com/platform/yijia/utils/weixinapp/WeiXinUserUtil.java

+ 1 - 0
YijiaRestful/src/main/java/com/platform/yijia/utils/weixinapp/WeiXinUserUtil.java

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