|
|
@@ -199,7 +199,7 @@ public class TtOpenComponentServiceImpl implements TtOpenComponentService { |
|
|
|
JsonObject jsonObject = new JsonObject(); |
|
|
|
jsonObject.addProperty("component_appid", getWxOpenConfigStorage().getComponentAppId()); |
|
|
|
String responseContent = post(API_CREATE_PREAUTHCODE_URL, jsonObject,"component_access_token"); |
|
|
|
// log.info(responseContent +"----------responseContent"); |
|
|
|
log.info(responseContent +"----------responseContent"); |
|
|
|
jsonObject = TtOpenGsonBuilder.create().fromJson(responseContent, JsonObject.class); |
|
|
|
|
|
|
|
StringBuilder preAuthUrl = new StringBuilder(String.format(COMPONENT_LOGIN_PAGE_URL, |
|
|
@@ -429,6 +429,8 @@ public class TtOpenComponentServiceImpl implements TtOpenComponentService { |
|
|
|
try { |
|
|
|
if (method == RequestMethod.POST) { |
|
|
|
String uriWithComponentAccessToken = uri; |
|
|
|
log.info("--------uri = "+uriWithComponentAccessToken); |
|
|
|
log.info("--------postData = "+postData); |
|
|
|
return getTtOpenService().post(uriWithComponentAccessToken, postData); |
|
|
|
}else { |
|
|
|
String uriWithComponentAccessToken = uri + (uri.contains("?") ? "&" : "?") + tokenKey + "=" + tokenValue; |
|
|
|