...
|
...
|
@@ -175,7 +175,7 @@ public class ClickUnionRest { |
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = {"/addUnion4Jump", "/addUnion4Jump/goitunes"})
|
|
|
@RequestMapping(value = {"/addUnion4Jump", "/addUnion4Jump/goitunes", "/addUnion4Jump/goandroid"})
|
|
|
public void addUnion4Stream(ClickUnionRequestBO bo, HttpServletRequest request, HttpServletResponse response) {
|
|
|
clickUnion.info("addUnion4Stream ClickUnionRequestBO{}", bo);
|
|
|
if (null == bo || StringUtils.isEmpty(bo.getUnion_type())) {
|
...
|
...
|
@@ -183,7 +183,9 @@ public class ClickUnionRest { |
|
|
}
|
|
|
String downloadDirect = "Y";
|
|
|
if(null != request && null != request.getRequestURI() && request.getRequestURI().endsWith("goitunes")){
|
|
|
downloadDirect = "N";
|
|
|
downloadDirect = "ios";
|
|
|
}else if(null != request && null != request.getRequestURI() && request.getRequestURI().endsWith("goandroid")){
|
|
|
downloadDirect = "android";
|
|
|
}
|
|
|
String clientIp = null;
|
|
|
String IP = RemoteIPInterceptor.getRemoteIP();
|
...
|
...
|
@@ -371,8 +373,10 @@ public class ClickUnionRest { |
|
|
response.setStatus(301);
|
|
|
//response.setHeader("Location",url);
|
|
|
//如果不需要直接下载, 配置参数downloadDirect=N, 跳转应用宝下载
|
|
|
if(null != downloadDirect && "N".equals(downloadDirect.trim())){
|
|
|
if(null != downloadDirect && "ios".equals(downloadDirect.trim())){
|
|
|
url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id490655927?mt=8";
|
|
|
}else if(null != downloadDirect && "android".equals(downloadDirect.trim())){
|
|
|
url = "http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho&g_f=995445";
|
|
|
}
|
|
|
response.sendRedirect(url);
|
|
|
} catch (Exception e) {
|
...
|
...
|
|