Commit 044803d0 by liulianglang

打印日志

parent cffbf0e8
......@@ -42,7 +42,16 @@ public class ForwardController {
String type = request.getMethod();
System.out.println("url:=="+url+"type:==="+type);
HashMap<String, String> headers = new HashMap<>();
String per="api1";
boolean sf=url.startsWith(per);
System.out.println(sf);
int le=per.length();
if(sf){
url= url.substring(le);
}
System.out.println("url2:=="+url);
HashMap<String, String> headers = new HashMap<>();
Enumeration<String> headerNames = request.getHeaderNames();
while (headerNames.hasMoreElements()) {
String element = headerNames.nextElement();
......@@ -84,6 +93,7 @@ public class ForwardController {
params.put(key, strings[0]);
}
try {
System.out.println("postparamsr:=="+params);
String s = HttpUtil.doPost(host + url, params, headers);
return JSONObject.parseObject(s, R.class);
} catch (Exception e) {
......
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