diff --git a/mallinkService/src/main/java/com/iformall/service/toutiao/api/bean/TtOpenGsonBuilder.java b/mallinkService/src/main/java/com/iformall/service/toutiao/api/bean/TtOpenGsonBuilder.java index 2f9ff8a..6ccfc62 100644 --- a/mallinkService/src/main/java/com/iformall/service/toutiao/api/bean/TtOpenGsonBuilder.java +++ b/mallinkService/src/main/java/com/iformall/service/toutiao/api/bean/TtOpenGsonBuilder.java @@ -2,8 +2,6 @@ package com.iformall.service.toutiao.api.bean; import com.google.gson.Gson; import com.google.gson.GsonBuilder; -import com.iformall.service.toutiao.miniapp.bean.TtMaSubscribeMessage; -import com.iformall.service.toutiao.miniapp.bean.TtMaSubscribeMessageGsonAdapter; /** * @author diff --git a/mallinkService/src/main/java/com/iformall/service/toutiao/api/impl/TtOpenComponentServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/toutiao/api/impl/TtOpenComponentServiceImpl.java index 6ec8b14..9a404c5 100644 --- a/mallinkService/src/main/java/com/iformall/service/toutiao/api/impl/TtOpenComponentServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/toutiao/api/impl/TtOpenComponentServiceImpl.java @@ -198,7 +198,8 @@ public class TtOpenComponentServiceImpl implements TtOpenComponentService { JsonObject jsonObject = new JsonObject(); jsonObject.addProperty("component_appid", getWxOpenConfigStorage().getComponentAppId()); String responseContent = post(API_CREATE_PREAUTHCODE_URL, jsonObject.toString(),"component_access_token"); - jsonObject = WxGsonBuilder.create().fromJson(responseContent, JsonObject.class); + log.info(responseContent +"----------responseContent"); + jsonObject = TtOpenGsonBuilder.create().fromJson(responseContent, JsonObject.class); StringBuilder preAuthUrl = new StringBuilder(String.format(COMPONENT_LOGIN_PAGE_URL, getWxOpenConfigStorage().getComponentAppId(), diff --git a/mlToutiaoOpen/src/main/java/com/iformall/controller/TtAuthController.java b/mlToutiaoOpen/src/main/java/com/iformall/controller/TtAuthController.java index bc55d69..6e7eef0 100644 --- a/mlToutiaoOpen/src/main/java/com/iformall/controller/TtAuthController.java +++ b/mlToutiaoOpen/src/main/java/com/iformall/controller/TtAuthController.java @@ -56,7 +56,6 @@ public class TtAuthController { @GetMapping("/goto_auth_url") public void gotoPreAuthUrl(HttpServletRequest request, HttpServletResponse response) { String host = request.getHeader("host"); - logger.info("-----host="+host); String url = "https://" + host + "/T/wt_auth/jump"; try { url = openService.getTtOpenComponentService().getPreAuthUrl(url);