|
|
@@ -115,6 +115,9 @@ public class TtOpenComponentServiceImpl implements TtOpenComponentService { |
|
|
|
if (!config.isComponentAccessTokenExpired() && !forceRefresh) { |
|
|
|
return config.getComponentAccessToken(); |
|
|
|
} |
|
|
|
String uri = API_COMPONENT_TOKEN_URL + "?component_appid=" + getWxOpenConfigStorage().getComponentAppId() + |
|
|
|
"&component_appsecret=" + getWxOpenConfigStorage().getComponentAppSecret() + |
|
|
|
"&component_ticket=" + getWxOpenConfigStorage().getComponentVerifyTicket(); |
|
|
|
JsonObject jsonObject = new JsonObject(); |
|
|
|
jsonObject.addProperty("component_appid", getWxOpenConfigStorage().getComponentAppId()); |
|
|
|
jsonObject.addProperty("component_appsecret", getWxOpenConfigStorage().getComponentAppSecret()); |
|
|
|