...
|
...
|
@@ -366,6 +366,18 @@ public class UnionServiceImpl implements IUnionService,ApplicationEventPublisher |
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (StringUtils.isEmpty(value) && "100000000003503".equals(request.getChannelId())) {
|
|
|
ClickUnionRequestBO clickInfo = new ClickUnionRequestBO();
|
|
|
clickInfo.setClient_type(request.getClient_type());
|
|
|
clickInfo.setIdfa(request.getIdfa());
|
|
|
clickInfo.setImei(request.getImei());
|
|
|
clickInfo.setAppid(request.getAppid());
|
|
|
clickInfo.setCommonUse(request.getCommonUse());
|
|
|
clickInfo.setClickId(request.getUdid());
|
|
|
clickInfo.setUnion_type(request.getChannelId());
|
|
|
value = JSON.toJSONString(clickInfo);
|
|
|
}
|
|
|
|
|
|
if (StringUtils.isEmpty(value)) {
|
|
|
if(StringUtils.isEmpty(request.getClientIp())){
|
...
|
...
|
@@ -591,8 +603,9 @@ public class UnionServiceImpl implements IUnionService,ApplicationEventPublisher |
|
|
union_type = String.valueOf(unionTypeMatch.getUnionTypeMatch());
|
|
|
}
|
|
|
String bean =buffer.append("UnionServiceImpl").append("_").append(union_type).toString();
|
|
|
IUnionService uniteService = null;
|
|
|
if(SpringContextUtil.containsBean(bean)){
|
|
|
IUnionService uniteService = SpringContextUtil.getBean(bean, IUnionService.class);
|
|
|
uniteService = SpringContextUtil.getBean(bean, IUnionService.class);
|
|
|
url = uniteService.getCallbackUrl(click,request);
|
|
|
}else{
|
|
|
url = unionService.getCallbackUrl(click,request);
|
...
|
...
|
@@ -612,7 +625,12 @@ public class UnionServiceImpl implements IUnionService,ApplicationEventPublisher |
|
|
}
|
|
|
activeUnion.info("activateUnion in call url={}", url);
|
|
|
//改成httpclient方式调用
|
|
|
Pair<Integer, String> pair = visitCallbackUrl(url);
|
|
|
Pair<Integer, String> pair;
|
|
|
if (uniteService != null) {
|
|
|
pair = uniteService.visitCallbackUrl(url);
|
|
|
} else {
|
|
|
pair = visitCallbackUrl(url);
|
|
|
}
|
|
|
|
|
|
try{
|
|
|
UnionCallbackLogs unionCallbackLogs = new UnionCallbackLogs();
|
...
|
...
|
|