...
|
...
|
@@ -581,20 +581,20 @@ public class UnionServiceImpl implements IUnionService,ApplicationEventPublisher |
|
|
//改成httpclient方式调用
|
|
|
Pair<Integer, String> pair = HttpUtils.httpGet(url);
|
|
|
|
|
|
// try{
|
|
|
// UnionCallbackLogs unionCallbackLogs = new UnionCallbackLogs();
|
|
|
// unionCallbackLogs.setUnionName(mktMarketingUrl.getName());
|
|
|
// unionCallbackLogs.setUnionType(click.getUnion_type());
|
|
|
// unionCallbackLogs.setUdid(request.getUdid());
|
|
|
// unionCallbackLogs.setUrl(url);
|
|
|
// unionCallbackLogs.setIdfa(request.getIdfa());
|
|
|
// unionCallbackLogs.setImei(request.getImei());
|
|
|
// unionCallbackLogs.setResult(pair.toString());
|
|
|
// unionCallbackLogs.setCreatetime(DateUtils.getCurrentTimeSecond());
|
|
|
// saveUnionCallbackLogs(unionCallbackLogs);
|
|
|
// }catch (Exception e){
|
|
|
// log.warn("save union_callback_logs e={}", e.getMessage());
|
|
|
// }
|
|
|
try{
|
|
|
UnionCallbackLogs unionCallbackLogs = new UnionCallbackLogs();
|
|
|
unionCallbackLogs.setUnionName(mktMarketingUrl.getName());
|
|
|
unionCallbackLogs.setUnionType(click.getUnion_type());
|
|
|
unionCallbackLogs.setUdid(request.getUdid());
|
|
|
unionCallbackLogs.setUrl(url);
|
|
|
unionCallbackLogs.setIdfa(request.getIdfa());
|
|
|
unionCallbackLogs.setImei(request.getImei());
|
|
|
unionCallbackLogs.setResult(pair.toString());
|
|
|
unionCallbackLogs.setCreatetime(DateUtils.getCurrentTimeSecond());
|
|
|
saveUnionCallbackLogs(unionCallbackLogs);
|
|
|
}catch (Exception e){
|
|
|
log.warn("save union_callback_logs e={}", e.getMessage());
|
|
|
}
|
|
|
|
|
|
activeUnion.info("activateUnion call union success url={}, and result={}", url, pair);
|
|
|
if (pair.getLeft() != 200) {
|
...
|
...
|
|