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