...
|
...
|
@@ -62,8 +62,11 @@ public class ClickUnionRest { |
|
|
}
|
|
|
String IP = RemoteIPInterceptor.getRemoteIP();
|
|
|
// String IP = "42.236.215.29, 123.151.42.48";
|
|
|
String[] IPS = IP.split(",");
|
|
|
String clientIp = IPS[0];
|
|
|
String clientIp = null;
|
|
|
if(StringUtils.isNotEmpty(IP)){
|
|
|
String[] IPS = IP.split(",");
|
|
|
clientIp = IPS[0];
|
|
|
}
|
|
|
request.setClientIp(clientIp);
|
|
|
clickUnion.info("addUnion with param is {}", request);
|
|
|
UnionResponse response = unionService.clickUnion(request);
|
...
|
...
|
@@ -90,8 +93,11 @@ public class ClickUnionRest { |
|
|
request = unionService.clickHttpRequestTOBO(httpServletRequest,request);
|
|
|
}
|
|
|
String IP = RemoteIPInterceptor.getRemoteIP();
|
|
|
String[] IPS = IP.split(",");
|
|
|
String clientIp = IPS[0];
|
|
|
String clientIp = null;
|
|
|
if(StringUtils.isNotEmpty(IP)){
|
|
|
String[] IPS = IP.split(",");
|
|
|
clientIp = IPS[0];
|
|
|
}
|
|
|
request.setClientIp(clientIp);
|
|
|
// IUnionService service = SpringContextUtil.getBean(bean, IUnionService.class);
|
|
|
clickUnion.info("addCommonUnion request is {}",request);
|
...
|
...
|
@@ -111,9 +117,12 @@ public class ClickUnionRest { |
|
|
public void addUnion4Special(ClickUnionRequestBO bo, HttpServletRequest request, HttpServletResponse response) {
|
|
|
log.info("addUnion4Special with param is {}", bo);
|
|
|
try {
|
|
|
String clientIp = null;
|
|
|
String IP = RemoteIPInterceptor.getRemoteIP();
|
|
|
String[] IPS = IP.split(",");
|
|
|
String clientIp = IPS[0];
|
|
|
if(StringUtils.isNotEmpty(IP)){
|
|
|
String[] IPS = IP.split(",");
|
|
|
clientIp = IPS[0];
|
|
|
}
|
|
|
bo.setClientIp(clientIp);
|
|
|
String agent = request.getHeader("user-agent");
|
|
|
log.info("user-agent={}", agent);
|
...
|
...
|
@@ -165,9 +174,12 @@ public class ClickUnionRest { |
|
|
if (StringUtils.isEmpty(bo.getUnion_type())) {
|
|
|
return;
|
|
|
}
|
|
|
String clientIp = null;
|
|
|
String IP = RemoteIPInterceptor.getRemoteIP();
|
|
|
String[] IPS = IP.split(",");
|
|
|
String clientIp = IPS[0];
|
|
|
if(StringUtils.isNotEmpty(IP)){
|
|
|
String[] IPS = IP.split(",");
|
|
|
clientIp = IPS[0];
|
|
|
}
|
|
|
bo.setClientIp(clientIp);
|
|
|
bo.setClient_type("android");
|
|
|
bo.setAppid("com.yoho");
|
...
|
...
|
@@ -229,8 +241,11 @@ public class ClickUnionRest { |
|
|
log.info("addMonitor with key={}, value={}", key, request.getParameter(key));
|
|
|
}
|
|
|
String IP = RemoteIPInterceptor.getRemoteIP();
|
|
|
String[] IPS = IP.split(",");
|
|
|
String clientIp = IPS[0];
|
|
|
String clientIp = null;
|
|
|
if(StringUtils.isNotEmpty(IP)){
|
|
|
String[] IPS = IP.split(",");
|
|
|
clientIp = IPS[0];
|
|
|
}
|
|
|
|
|
|
bo.setClientIp(clientIp);
|
|
|
String agent = request.getHeader("user-agent");
|
...
|
...
|
|