Authored by zhengwen.ge

jump优化

... ... @@ -136,7 +136,7 @@ public class RedirectServiceImpl implements IRedirectService {
url = unionType.getGoUrl();
}
logger.info("builderCommonUrl find the channelId={}",channelId);
logger.info("builderCommonUrl find the channelId={}", channelId);
if( StringUtils.isBlank(url))
return "";
... ... @@ -146,12 +146,8 @@ public class RedirectServiceImpl implements IRedirectService {
targetUrl.append(uionReqVO.getTracking_code());
targetUrl.append("&append=&go_url=");
targetUrl.append(url);
if (targetUrl.toString().contains("?")) {
targetUrl.append("&utm_source=").append(uionReqVO.getUtm_source()).append("&utm_medium=").append(uionReqVO.getUtm_medium()).append("&utm_campaign=").append(uionReqVO.getUtm_campaign());
} else {
targetUrl.append("?utm_source=").append(uionReqVO.getUtm_source()).append("&utm_medium=").append(uionReqVO.getUtm_medium()).append("&utm_campaign=").append(uionReqVO.getUtm_campaign());
}
targetUrl.append("?utm_source=").append(uionReqVO.getUtm_source()).append("&utm_medium=").append(uionReqVO.getUtm_medium()).append("&utm_campaign=").append(uionReqVO.getUtm_campaign());
logger.info("builderCommonUrl url is {}",targetUrl.toString());
return targetUrl.toString();
}
... ...