Browse Source

update tto

master
xhxu 2 years ago
parent
commit
beee14ac29
2 changed files with 1 additions and 2 deletions
  1. +0
    -2
      mallinkService/src/main/java/com/iformall/service/toutiao/FmTtOpenInRedisDBConfigStorage.java
  2. +1
    -0
      mallinkService/src/main/java/com/iformall/service/toutiao/api/impl/TtOpenComponentServiceImpl.java

+ 0
- 2
mallinkService/src/main/java/com/iformall/service/toutiao/FmTtOpenInRedisDBConfigStorage.java View File

@@ -153,8 +153,6 @@ 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);
}



+ 1
- 0
mallinkService/src/main/java/com/iformall/service/toutiao/api/impl/TtOpenComponentServiceImpl.java View File

@@ -325,6 +325,7 @@ public class TtOpenComponentServiceImpl implements TtOpenComponentService {
log.info("获取authorizerAccessToken-----------------"+responseContent);

TtOpenAuthorizationInfo queryAuth = TtOpenGsonBuilder.create().fromJson(responseContent, TtOpenAuthorizationInfo.class);
queryAuth.setAuthorizerAppid(appId);//授权小程序
log.info("获取authorizerAccessToken-----------------"+TtOpenGsonBuilder.create().toJson(queryAuth));
if (queryAuth.getAuthorizerAccessToken() != null) {
config.updateAuthorizerAccessToken(queryAuth.getAuthorizerAppid(),


Loading…
Cancel
Save