Selaa lähdekoodia

update tto

master
xhxu 3 vuotta sitten
vanhempi
commit
beee14ac29
2 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  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 Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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(),


Ladataan…
Peruuta
Tallenna