...
|
...
|
@@ -78,6 +78,11 @@ public class ClickUnionRest { |
|
|
String[] td1 = td.split("0_0_");
|
|
|
request.setTd(td1[1]);
|
|
|
}
|
|
|
//增加监控,把接口报上去,根据client_type来判断
|
|
|
request.setInterfaceType("addUnion_ios");
|
|
|
if(StringUtils.isNotEmpty(request.getClient_type())&&request.getClient_type().equals(ClientTypeEnum.ANDROID.getName())){
|
|
|
request.setInterfaceType("addUnion_android");
|
|
|
}
|
|
|
clickUnion.info("addUnion with param is {}", request);
|
|
|
UnionResponse response = unionService.clickUnion(request);
|
|
|
// log.info("addUnion with result is {}, and request is {}", response, request);
|
...
|
...
|
@@ -466,6 +471,12 @@ public class ClickUnionRest { |
|
|
log.error("addUnion4Stream error with request={}", bo, e);
|
|
|
}
|
|
|
try {
|
|
|
|
|
|
//增加监控,把接口报上去,根据client_type来判断
|
|
|
bo.setInterfaceType("addUnion4Jump_ios");
|
|
|
if(StringUtils.isNotEmpty(bo.getClient_type())&&bo.getClient_type().equals(ClientTypeEnum.ANDROID.getName())){
|
|
|
bo.setInterfaceType("addUnion4Jump_android");
|
|
|
}
|
|
|
StringBuffer stringBuffer = new StringBuffer();
|
|
|
String bean = stringBuffer.append("UnionServiceImpl").append("_").append(bo.getUnion_type()).toString();
|
|
|
boolean containsBean = SpringContextUtil.containsBean(bean);
|
...
|
...
|
@@ -529,6 +540,11 @@ public class ClickUnionRest { |
|
|
log.error("addMonitor error with request={}",e1.getMessage());
|
|
|
}
|
|
|
|
|
|
//增加监控,把接口报上去,根据client_type来判断
|
|
|
bo.setInterfaceType("addMonitor_ios");
|
|
|
if(StringUtils.isNotEmpty(bo.getClient_type())&&bo.getClient_type().equals(ClientTypeEnum.ANDROID.getName())){
|
|
|
bo.setInterfaceType("addMonitor_android");
|
|
|
}
|
|
|
clickUnion.info("addMonitor request={}", bo);
|
|
|
//根据union_type区分不同的厂商
|
|
|
String union_type = request.getParameter("union_type");
|
...
|
...
|
|