From 442ba84af3e4185ff9d079fa4e6c617a03e4c6de Mon Sep 17 00:00:00 2001 From: xhxu Date: Mon, 18 Apr 2022 21:09:06 +0800 Subject: [PATCH] //update log --- .../com/iformall/douyin/web/api/TtWebGetRequestExecutor.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mallinkService/src/main/java/com/iformall/douyin/web/api/TtWebGetRequestExecutor.java b/mallinkService/src/main/java/com/iformall/douyin/web/api/TtWebGetRequestExecutor.java index 1dca9841a..23347ff67 100644 --- a/mallinkService/src/main/java/com/iformall/douyin/web/api/TtWebGetRequestExecutor.java +++ b/mallinkService/src/main/java/com/iformall/douyin/web/api/TtWebGetRequestExecutor.java @@ -2,6 +2,7 @@ package com.iformall.douyin.web.api; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; +import lombok.extern.slf4j.Slf4j; import me.chanjar.weixin.common.WxType; import me.chanjar.weixin.common.error.WxError; import me.chanjar.weixin.common.error.WxErrorException; @@ -26,6 +27,7 @@ import java.util.regex.Pattern; * @author ecoolper * @date 2017/5/4 */ +@Slf4j public class TtWebGetRequestExecutor implements RequestExecutor { protected RequestHttp requestHttp; @@ -40,6 +42,8 @@ public class TtWebGetRequestExecutor implements RequestExecutor @Override public String execute(String uri, String queryParam, WxType wxType) throws WxErrorException, IOException { + log.info("uri{}"+uri); + log.info("request{}"+queryParam); String access_token = handleUrl(uri); if(StringUtils.isBlank(access_token)){ WxError wxError = WxError.fromJson("{\n" + @@ -66,6 +70,7 @@ public class TtWebGetRequestExecutor implements RequestExecutor try (CloseableHttpResponse response = requestHttp.getRequestHttpClient().execute(httpGet)) { String responseContent = Utf8ResponseHandler.INSTANCE.handleResponse(response); + log.info("response{}"+responseContent); JSONObject jsonObject = JSON.parseObject(responseContent); JSONObject data = jsonObject.getJSONObject("data"); WxError error = WxError.fromJson(data.toJSONString());