...
|
...
|
@@ -60,7 +60,11 @@ public class ClickUnionRest { |
|
|
if ("iphone".equals(request.getClient_type())) {
|
|
|
request.setClient_type(ClientTypeEnum.IOS.getName());
|
|
|
}
|
|
|
request.setClientIp(RemoteIPInterceptor.getRemoteIP());
|
|
|
String IP = RemoteIPInterceptor.getRemoteIP();
|
|
|
// String IP = "42.236.215.29, 123.151.42.48";
|
|
|
String[] IPS = IP.split(",");
|
|
|
String clientIp = IPS[0];
|
|
|
request.setClientIp(clientIp);
|
|
|
clickUnion.info("addUnion with param is {}", request);
|
|
|
UnionResponse response = unionService.clickUnion(request);
|
|
|
log.info("addUnion with result is {}, and request is {}", response, request);
|
...
|
...
|
@@ -85,8 +89,10 @@ public class ClickUnionRest { |
|
|
}else {
|
|
|
request = unionService.clickHttpRequestTOBO(httpServletRequest,request);
|
|
|
}
|
|
|
|
|
|
request.setClientIp(RemoteIPInterceptor.getRemoteIP());
|
|
|
String IP = RemoteIPInterceptor.getRemoteIP();
|
|
|
String[] IPS = IP.split(",");
|
|
|
String clientIp = IPS[0];
|
|
|
request.setClientIp(clientIp);
|
|
|
// IUnionService service = SpringContextUtil.getBean(bean, IUnionService.class);
|
|
|
clickUnion.info("addCommonUnion request is {}",request);
|
|
|
UnionResponse response = unionService.clickUnion(request);
|
...
|
...
|
@@ -105,7 +111,10 @@ public class ClickUnionRest { |
|
|
public void addUnion4Special(ClickUnionRequestBO bo, HttpServletRequest request, HttpServletResponse response) {
|
|
|
log.info("addUnion4Special with param is {}", bo);
|
|
|
try {
|
|
|
bo.setClientIp(RemoteIPInterceptor.getRemoteIP());
|
|
|
String IP = RemoteIPInterceptor.getRemoteIP();
|
|
|
String[] IPS = IP.split(",");
|
|
|
String clientIp = IPS[0];
|
|
|
bo.setClientIp(clientIp);
|
|
|
String agent = request.getHeader("user-agent");
|
|
|
log.info("user-agent={}", agent);
|
|
|
if (StringUtils.isEmpty(agent)) {
|
...
|
...
|
@@ -156,7 +165,10 @@ public class ClickUnionRest { |
|
|
if (StringUtils.isEmpty(bo.getUnion_type())) {
|
|
|
return;
|
|
|
}
|
|
|
bo.setClientIp(RemoteIPInterceptor.getRemoteIP());
|
|
|
String IP = RemoteIPInterceptor.getRemoteIP();
|
|
|
String[] IPS = IP.split(",");
|
|
|
String clientIp = IPS[0];
|
|
|
bo.setClientIp(clientIp);
|
|
|
bo.setClient_type("android");
|
|
|
bo.setAppid("com.yoho");
|
|
|
String agent = request.getHeader("user-agent");
|
...
|
...
|
@@ -216,8 +228,11 @@ public class ClickUnionRest { |
|
|
String key = e.nextElement();
|
|
|
log.info("addMonitor with key={}, value={}", key, request.getParameter(key));
|
|
|
}
|
|
|
String IP = RemoteIPInterceptor.getRemoteIP();
|
|
|
String[] IPS = IP.split(",");
|
|
|
String clientIp = IPS[0];
|
|
|
|
|
|
bo.setClientIp(RemoteIPInterceptor.getRemoteIP());
|
|
|
bo.setClientIp(clientIp);
|
|
|
String agent = request.getHeader("user-agent");
|
|
|
log.info("addMonitor user-agent={}", agent);
|
|
|
try{
|
...
|
...
|
|