...
|
...
|
@@ -110,6 +110,7 @@ public class RedirectServiceImpl implements IRedirectService { |
|
|
urlBuilder.append(WAP_REDIRECT_URL).append("?_QYH_UNION=");
|
|
|
urlBuilder.append(param).append("&target=");
|
|
|
urlBuilder.append(targetUrl);
|
|
|
logger.info("builderUrlForPanshi url is {}",urlBuilder.toString());
|
|
|
return urlBuilder.toString();
|
|
|
}
|
|
|
|
...
|
...
|
@@ -140,6 +141,7 @@ public class RedirectServiceImpl implements IRedirectService { |
|
|
urlBuilder.append(redirectUrl).append("?_QYH_UNION=");
|
|
|
urlBuilder.append(param).append("&target=");
|
|
|
urlBuilder.append(newTargetUrl);
|
|
|
logger.info("builderUrlForFanli url is {}",urlBuilder.toString());
|
|
|
return urlBuilder.toString();
|
|
|
}
|
|
|
|
...
|
...
|
@@ -155,15 +157,15 @@ public class RedirectServiceImpl implements IRedirectService { |
|
|
}else {
|
|
|
redirectUrl = WEB_REDIRECT_URL;
|
|
|
}
|
|
|
if (targetUrl.toString().contains("?")) {
|
|
|
if(targetUrl.toString().contains("utm_source=")){
|
|
|
targetUrl.append("&utm_medium=").append(commonJumpReqVO.getUtm_medium()).append("&utm_campaign=").append(commonJumpReqVO.getUtm_campaign());
|
|
|
}else{
|
|
|
targetUrl.append("&utm_source=").append(commonJumpReqVO.getUtm_source()).append("&utm_medium=").append(commonJumpReqVO.getUtm_medium()).append("&utm_campaign=").append(commonJumpReqVO.getUtm_campaign());
|
|
|
}
|
|
|
} else {
|
|
|
targetUrl.append("?utm_source=").append(commonJumpReqVO.getUtm_source()).append("&utm_medium=").append(commonJumpReqVO.getUtm_medium()).append("&utm_campaign=").append(commonJumpReqVO.getUtm_campaign());
|
|
|
}
|
|
|
// if (targetUrl.toString().contains("?")) {
|
|
|
// if(targetUrl.toString().contains("utm_source=")){
|
|
|
// targetUrl.append("&utm_medium=").append(commonJumpReqVO.getUtm_medium()).append("&utm_campaign=").append(commonJumpReqVO.getUtm_campaign());
|
|
|
// }else{
|
|
|
// targetUrl.append("&utm_source=").append(commonJumpReqVO.getUtm_source()).append("&utm_medium=").append(commonJumpReqVO.getUtm_medium()).append("&utm_campaign=").append(commonJumpReqVO.getUtm_campaign());
|
|
|
// }
|
|
|
// } else {
|
|
|
// targetUrl.append("?utm_source=").append(commonJumpReqVO.getUtm_source()).append("&utm_medium=").append(commonJumpReqVO.getUtm_medium()).append("&utm_campaign=").append(commonJumpReqVO.getUtm_campaign());
|
|
|
// }
|
|
|
try {
|
|
|
param = URLEncoder.encode(param, "UTF-8");
|
|
|
targetUrl = new StringBuffer(URLEncoder.encode(targetUrl.toString(), "UTF-8"));
|
...
|
...
|
@@ -174,8 +176,7 @@ public class RedirectServiceImpl implements IRedirectService { |
|
|
urlBuilder.append(redirectUrl).append("?_QYH_UNION=");
|
|
|
urlBuilder.append(param).append("&target=");
|
|
|
urlBuilder.append(targetUrl);
|
|
|
|
|
|
logger.info("builderCommonUrl url is {}", targetUrl.toString());
|
|
|
logger.info("builderCommonUrl url is {}", urlBuilder.toString());
|
|
|
return urlBuilder.toString();
|
|
|
}
|
|
|
|
...
|
...
|
@@ -222,6 +223,7 @@ public class RedirectServiceImpl implements IRedirectService { |
|
|
JSONObject param = new JSONObject();
|
|
|
String union_type = commonJumpReqVO.getUnion_type();
|
|
|
if(StringUtils.isNotBlank(union_type)){
|
|
|
logger.info("unionType is {}",union_type);
|
|
|
param.put("client_id", union_type);
|
|
|
param.put("channel", union_type);
|
|
|
}else{
|
...
|
...
|
|