Commit 7ffc2a20 authored by huyuchen's avatar huyuchen

优化修改

parent 0fe9ff7a
...@@ -108,10 +108,11 @@ public class HttpDaprUtil { ...@@ -108,10 +108,11 @@ public class HttpDaprUtil {
headers.setContentType(MediaType.APPLICATION_JSON); headers.setContentType(MediaType.APPLICATION_JSON);
headers.add("Authorization", null); headers.add("Authorization", null);
HttpEntity<String> entity = new HttpEntity(param, headers); HttpEntity<String> entity = new HttpEntity(param, headers);
String urlBuffer = stringBuffer.toString();
try { try {
res = restTemplate.postForEntity(URI.create(stringBuffer.toString()),entity, cs); res = restTemplate.postForEntity(URI.create(urlBuffer),entity, cs);
} catch (Exception e) { } catch (Exception e) {
log.error("日志保存异常:",e); log.error("日志保存异常:" + URI.create(urlBuffer),e);
return R.failed("获取信息失败:" + e.getMessage()); return R.failed("获取信息失败:" + e.getMessage());
} }
if (null != res && CommonConstants.SUCCESS == res.getStatusCodeValue()) { if (null != res && CommonConstants.SUCCESS == res.getStatusCodeValue()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment