|
|
@@ -409,6 +409,8 @@ public class ConversationContentServiceImpl extends BaseMybatisDao<ChatMsgUserMa
|
|
|
logger.debug("getAccessToken有缓存从缓存获取");
|
|
|
accessToken = accessMap.get("accessToken");
|
|
|
Long expireDate = Long.valueOf(accessMap.get("expireDate"));
|
|
|
+ System.out.println(accessToken);
|
|
|
+ System.out.println(System.currentTimeMillis());
|
|
|
if (expireDate < System.currentTimeMillis()){
|
|
|
logger.debug("getAccessToken缓存已过期从接口获取");
|
|
|
Map<String, String> map = getAccessMap(corpId, secret);
|
|
|
@@ -488,7 +490,7 @@ public class ConversationContentServiceImpl extends BaseMybatisDao<ChatMsgUserMa
|
|
|
corpId = hnCorpId;
|
|
|
appSecret = hnAppSecret;
|
|
|
//获取redis缓存数据
|
|
|
- Map<String,String> accessMap = (Map<String, String>) redisTemplate.opsForValue().get("ADDRESS_BOOK_ACCESS_TOKEN");
|
|
|
+ Map<String,String> accessMap = (Map<String, String>) redisTemplate.opsForValue().get("APP_ACCESS_TOKEN");
|
|
|
if (accessMap == null){
|
|
|
logger.debug("APP_ACCESS_TOKEN无缓存从接口获取");
|
|
|
Map<String, String> map = getAccessMap(corpId,appSecret);
|
|
|
@@ -511,7 +513,7 @@ public class ConversationContentServiceImpl extends BaseMybatisDao<ChatMsgUserMa
|
|
|
corpId = nmCorpid;
|
|
|
appSecret = nmAppSecret;
|
|
|
//获取redis缓存数据
|
|
|
- Map<String,String> accessMap = (Map<String, String>) redisTemplate.opsForValue().get("NM_ADDRESS_BOOK_ACCESS_TOKEN");
|
|
|
+ Map<String,String> accessMap = (Map<String, String>) redisTemplate.opsForValue().get("NM_APP_ACCESS_TOKEN");
|
|
|
if (accessMap == null){
|
|
|
logger.debug("NM_APP_ACCESS_TOKEN无缓存从接口获取");
|
|
|
Map<String, String> map = getAccessMap(corpId,appSecret);
|