...
|
...
|
@@ -53,6 +53,9 @@ public class ClickUnionRest { |
|
|
@RequestMapping("/addUnion")
|
|
|
@ResponseBody
|
|
|
public UnionResponse addUnion(ClickUnionRequestBO request) {
|
|
|
if (StringUtils.isEmpty(request.getUnion_type())) {
|
|
|
return new UnionResponse(201, "union_type is empty");
|
|
|
}
|
|
|
log.info("addUnion with param is {}", request);
|
|
|
clickUnion.info("addUnion with param is {}", request);
|
|
|
if ("iphone".equals(request.getClient_type())) {
|
...
|
...
|
@@ -147,6 +150,9 @@ public class ClickUnionRest { |
|
|
|
|
|
@RequestMapping("/addUnion4Jump")
|
|
|
public void addUnion4Stream(ClickUnionRequestBO bo, HttpServletRequest request, HttpServletResponse response) {
|
|
|
if (StringUtils.isEmpty(bo.getUnion_type())) {
|
|
|
return;
|
|
|
}
|
|
|
bo.setClientIp(RemoteIPInterceptor.getRemoteIP());
|
|
|
bo.setClient_type("android");
|
|
|
bo.setAppid("com.yoho");
|
...
|
...
|
@@ -195,6 +201,9 @@ public class ClickUnionRest { |
|
|
@RequestMapping("/addMonitor")
|
|
|
@ResponseBody
|
|
|
public JSON addMonitor(ClickUnionRequestBO bo, HttpServletRequest request, HttpServletResponse response) {
|
|
|
if (StringUtils.isEmpty(bo.getUnion_type())) {
|
|
|
return new JSONObject();
|
|
|
}
|
|
|
log.info("addMonitor with param is {}", bo);
|
|
|
clickUnion.info("addMonitor with param is {}", bo);
|
|
|
try {
|
...
|
...
|
|