越城区测试token拼接失败问题

This commit is contained in:
lvleigang 2024-07-01 16:02:46 +08:00
parent 2214d86ee0
commit 5d68660e1b
1 changed files with 9 additions and 0 deletions

View File

@ -1876,6 +1876,15 @@ public class SysApplicationServiceImpl extends BaseService<SysApplicationEntity,
entity.setContentType("application/json");
post.setEntity(entity);
}
if (headers != null && headers.size() > 0) {
StringBuffer stringBuffer = new StringBuffer();
for (String key : headers.keySet()) {
stringBuffer.append(key).append("=").append(headers.get(key)).append("&");
}
logger.info("转发接口发送header信息"+ stringBuffer);
}
logger.info("转发接口发送bodys信息"+ bodys);
response = closeableHttpClient.execute(post);
HttpEntity entity = response.getEntity();