Forráskód Böngészése

埃文增加请求参数保存

longhu 3 napja
szülő
commit
27986e5e40

+ 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());