ソースを参照

update tto

master
xhxu 3年前
コミット
b1a402e37e
1個のファイルの変更3行の追加0行の削除
  1. +3
    -0
      mallinkService/src/main/java/com/iformall/service/toutiao/FmTtOpenInRedisDBConfigStorage.java

+ 3
- 0
mallinkService/src/main/java/com/iformall/service/toutiao/FmTtOpenInRedisDBConfigStorage.java ファイルの表示

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

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


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


読み込み中…
キャンセル
保存