...
|
...
|
@@ -73,7 +73,8 @@ public class RedirectServiceImpl implements IRedirectService { |
|
|
return;
|
|
|
}
|
|
|
String client_id = commonJumpReqVO.getClient_id();
|
|
|
if (StringUtils.isEmpty(client_id)) {
|
|
|
String union_type = commonJumpReqVO.getUnion_type();
|
|
|
if (StringUtils.isEmpty(client_id)&&StringUtils.isEmpty(union_type)) {
|
|
|
logger.warn("jump: channelId is null, requst param is {}", commonJumpReqVO);
|
|
|
return;
|
|
|
}
|
...
|
...
|
@@ -145,7 +146,7 @@ public class RedirectServiceImpl implements IRedirectService { |
|
|
}
|
|
|
|
|
|
private String builderCommonUrl(CommonJumpReqVO commonJumpReqVO){
|
|
|
logger.info("builderCommonUrl request is {}",commonJumpReqVO);
|
|
|
logger.info("builderCommonUrl request is {}", commonJumpReqVO);
|
|
|
String param = this.generateReqParam(commonJumpReqVO);
|
|
|
String go_url = commonJumpReqVO.getGo_url();
|
|
|
StringBuffer targetUrl = new StringBuffer(commonJumpReqVO.getGo_url());
|
...
|
...
|
@@ -221,9 +222,15 @@ public class RedirectServiceImpl implements IRedirectService { |
|
|
|
|
|
private String generateReqParam(CommonJumpReqVO commonJumpReqVO){
|
|
|
JSONObject param = new JSONObject();
|
|
|
param.put("client_id", commonJumpReqVO.getClient_id());
|
|
|
String union_type = commonJumpReqVO.getUnion_type();
|
|
|
if(StringUtils.isNotBlank(union_type)){
|
|
|
param.put("client_id", union_type);
|
|
|
param.put("channel", union_type);
|
|
|
}else{
|
|
|
param.put("client_id",commonJumpReqVO.getClient_id());
|
|
|
param.put("channel", commonJumpReqVO.getClient_id());
|
|
|
}
|
|
|
param.put("channel_code", commonJumpReqVO.getChannel_code());
|
|
|
param.put("channel", commonJumpReqVO.getClient_id());
|
|
|
param.put("fl_uid", commonJumpReqVO.getU_id());
|
|
|
param.put("go_url", commonJumpReqVO.getGo_url());
|
|
|
return param.toString();
|
...
|
...
|
|