...
|
...
|
@@ -215,7 +215,7 @@ public class UnionServiceImpl implements IUnionService { |
|
|
} else {
|
|
|
url += "&imei=" + click.getImei();
|
|
|
}
|
|
|
|
|
|
log.info("activateUnion in call url={}", url);
|
|
|
// 调用接口发送短信请求
|
|
|
AsyncFuture<String> response = service.get("union.activate", url, null, String.class, null);
|
|
|
String result = response.get();
|
...
|
...
|
@@ -224,7 +224,6 @@ public class UnionServiceImpl implements IUnionService { |
|
|
log.error("callback error with request={}", request, e);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 调用成功,更新数据库
|
|
|
UnionLogs logs = new UnionLogs();
|
|
|
logs.setAppId(click.getAppid());
|
...
|
...
|
@@ -240,6 +239,7 @@ public class UnionServiceImpl implements IUnionService { |
|
|
logs.setAddParams(value);
|
|
|
logs.setTd(request.getTd());
|
|
|
unionLogsDAO.insert(logs);
|
|
|
log.info("activateUnion add db success with request is {}, and dbData={}", request, logs);
|
|
|
|
|
|
UnionTypeModel u = UnionConstant.unionTypeMap.get(Integer.parseInt(click.getUnion_type()));
|
|
|
// 记录日志
|
...
|
...
|
@@ -254,6 +254,7 @@ public class UnionServiceImpl implements IUnionService { |
|
|
j.put("ip", request.getClientIp());
|
|
|
j.put("collect_ip", "");
|
|
|
activeDingdang.info(j.toString());
|
|
|
log.info("activateUnion in success request is {}", request);
|
|
|
return new UnionResponse();
|
|
|
|
|
|
} catch (Exception e) {
|
...
|
...
|
|