...
|
...
|
@@ -172,11 +172,13 @@ public class ClickUnionRest { |
|
|
@RequestMapping("/addUnion4Jump")
|
|
|
public void addUnion4Stream(ClickUnionRequestBO bo, HttpServletRequest request, HttpServletResponse response) {
|
|
|
clickUnion.info("addUnion4Stream ClickUnionRequestBO{}", bo);
|
|
|
if (StringUtils.isEmpty(bo.getUnion_type())) {
|
|
|
if (null == bo || StringUtils.isEmpty(bo.getUnion_type())) {
|
|
|
return;
|
|
|
}
|
|
|
String clientIp = null;
|
|
|
String IP = RemoteIPInterceptor.getRemoteIP();
|
|
|
String downloadDirect = bo.getDownloadDirect();
|
|
|
|
|
|
if(StringUtils.isNotEmpty(IP)){
|
|
|
String[] IPS = IP.split(",");
|
|
|
clientIp = IPS[0];
|
...
|
...
|
@@ -359,6 +361,10 @@ public class ClickUnionRest { |
|
|
// log.info("addUnion4Stream with request is {}", bo);
|
|
|
response.setStatus(301);
|
|
|
//response.setHeader("Location",url);
|
|
|
//如果不需要直接下载, 配置参数downloadDirect=N, 跳转应用宝下载
|
|
|
if(null != downloadDirect && "N".equals(downloadDirect.trim())){
|
|
|
url = "http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho&g_f=995445";
|
|
|
}
|
|
|
response.sendRedirect(url);
|
|
|
} catch (Exception e) {
|
|
|
log.error("addUnion4Stream error with request={}", bo, e);
|
...
|
...
|
|