소스 검색

update tto

master
xhxu 3 년 전
부모
커밋
8ae14ad057
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. +2
    -3
      mallinkService/src/main/java/com/iformall/service/toutiao/FmTtOpenInRedisDBConfigStorage.java

+ 2
- 3
mallinkService/src/main/java/com/iformall/service/toutiao/FmTtOpenInRedisDBConfigStorage.java 파일 보기

@@ -73,8 +73,6 @@ public class FmTtOpenInRedisDBConfigStorage extends WxOpenInMemoryConfigStorage
authorizerAccessTokenKey = prefix + AUTHORIZER_ACCESS_TOKEN_KEY.concat(componentAppId);
this.jsapiTicketKey = JSAPI_TICKET_KEY.concat(componentAppId);
this.cardApiTicket = CARD_API_TICKET_KEY.concat(componentAppId);

logger.info("------"+this.authorizerAccessTokenKey);
}

@Override
@@ -155,6 +153,8 @@ public class FmTtOpenInRedisDBConfigStorage extends WxOpenInMemoryConfigStorage
}

private String getKey(String prefix, String appId) {
logger.info("------"+prefix);
logger.info("------"+appId);
return prefix.endsWith(":") ? prefix.concat(appId) : prefix.concat(":").concat(appId);
}

@@ -226,7 +226,6 @@ public class FmTtOpenInRedisDBConfigStorage extends WxOpenInMemoryConfigStorage
@Override
public void updateAuthorizerAccessToken(String appId, String authorizerAccessToken, int expiresInSeconds) {
try (Jedis jedis = this.jedisPool.getResource()) {
logger.info("------"+this.authorizerAccessTokenKey);
jedis.setex(this.getKey(this.authorizerAccessTokenKey, appId), expiresInSeconds - 200, authorizerAccessToken);
}
}


불러오는 중...
취소
저장