...
|
...
|
@@ -414,11 +414,11 @@ public class ClickUnionRest implements ApplicationEventPublisherAware{ |
|
|
clickUnion.info("addMonitor with param is {}", bo);
|
|
|
try {
|
|
|
|
|
|
Enumeration<String> e = request.getParameterNames();
|
|
|
while (e.hasMoreElements()) {
|
|
|
String key = e.nextElement();
|
|
|
clickUnion.info("addMonitor with key={}, value={}", key, request.getParameter(key));
|
|
|
}
|
|
|
// Enumeration<String> e = request.getParameterNames();
|
|
|
// while (e.hasMoreElements()) {
|
|
|
// String key = e.nextElement();
|
|
|
// clickUnion.info("addMonitor with key={}, value={}", key, request.getParameter(key));
|
|
|
// }
|
|
|
String IP = RemoteIPInterceptor.getRemoteIP();
|
|
|
String clientIp = null;
|
|
|
if(StringUtils.isNotEmpty(IP)){
|
...
|
...
|
@@ -428,7 +428,7 @@ public class ClickUnionRest implements ApplicationEventPublisherAware{ |
|
|
|
|
|
bo.setClientIp(clientIp);
|
|
|
String agent = request.getHeader("user-agent");
|
|
|
clickUnion.info("addMonitor user-agent={}", agent);
|
|
|
// clickUnion.info("addMonitor user-agent={}", agent);
|
|
|
try{
|
|
|
if (!StringUtils.isEmpty(agent)) {
|
|
|
if (agent.toLowerCase().indexOf("mac os x") >= 0 || agent.toLowerCase().indexOf("iphone") >= 0) {
|
...
|
...
|
@@ -475,7 +475,7 @@ public class ClickUnionRest implements ApplicationEventPublisherAware{ |
|
|
bo = service.clickHttpRequestTOBO(request,bo);
|
|
|
}
|
|
|
unionService.clickUnion(bo);
|
|
|
clickUnion.info("addMonitor with param is {}", bo);
|
|
|
// clickUnion.info("addMonitor with param is {}", bo);
|
|
|
// log.info("addMonitor with result is {}, and request is {}", response, bo);
|
|
|
response.setStatus(200);
|
|
|
JSONObject j = new JSONObject();
|
...
|
...
|
|