瀏覽代碼

埃文增加请求参数保存

longhu 3 天之前
父節點
當前提交
27986e5e40
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/main/java/com/hr/externelSystem/AiwenIpService.java

+ 4 - 0
src/main/java/com/hr/externelSystem/AiwenIpService.java

@@ -163,6 +163,10 @@ public class AiwenIpService implements BizHandler<AiwenParam,AiwenParseIpInfoVO>
                 }
 
                 String url = aiwenDto.getUrl() + "/?key=" + aiwenDto.getKey() + "&ip=" + aiwenIpParam.getIp() + "&coordsys=WGS84";
+                Map<String,String> requestMap = new HashMap();
+                requestMap.put("key", aiwenDto.getKey());
+                requestMap.put("ip", aiwenIpParam.getIp());
+                logDto.setRequestParam(JSON.toJSONString(requestMap));
                 logDto.setUrl(url);
                 // 调用接口解析ip地址信息
                 String response = HttpClientUtils.get(url, new HashMap());