jk-GitHub-coder 4 years ago
parent
commit
12811b0aef

+ 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);