...
|
...
|
@@ -4,6 +4,7 @@ |
|
|
package com.yoho.unions.server.restapi;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
import java.util.Enumeration;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
...
|
...
|
@@ -63,8 +64,14 @@ public class ClickUnionRest { |
|
|
public void addUnion4Special(ClickUnionRequestBO bo, HttpServletRequest request, HttpServletResponse response) {
|
|
|
try {
|
|
|
bo.setClientIp(RemoteIPInterceptor.getRemoteIP());
|
|
|
Enumeration<String> e = request.getHeaderNames();
|
|
|
while (e.hasMoreElements()) {
|
|
|
String key = e.nextElement();
|
|
|
System.out.println(key + "=" + request.getHeader(key));
|
|
|
}
|
|
|
unionService.clickUnion(bo);
|
|
|
log.info("addUnion4Special with result is {}, and request is {}", response, request);
|
|
|
response.setStatus(301);
|
|
|
response.sendRedirect("https://itunes.apple.com/cn/app/yoho!-you-huo/id490655927?mt=8");
|
|
|
} catch (IOException e) {
|
|
|
log.error("addUnion4Special error with request={}", bo, e);
|
...
|
...
|
|