Commit d289f5b9 by 杨涛

fix 连接重新拼接

parent bb5bb62a
......@@ -384,12 +384,23 @@ public class WeixinClockBizImpl implements WeixinClockBiz {
return content.equalsIgnoreCase(aimKeyword);
}
private String getClockRankUrl(String wxGroupId, String wxUserId){
String clockRankUrl = wechatGroupLinkPrefix
.concat("/clock")
.concat("?wxGroupId=").concat(wxGroupId)
.concat("&wxUserId=").concat(wxUserId);
return UrlUtils.getShortUrl4Own(clockRankUrl);
private String getClockRankUrl(Long clockPrizeId, String wxGroupId, String wxUserId){
StringBuffer sbu=new StringBuffer();
if(null != clockPrizeId && !clockPrizeId.equals(0L)) {
AppDto appDto = appConsr.getBaseById(clockPrizeId);
AccountSettingDto accountSettingDto = qrcodeSceneConsr.getWechatInfo(appDto.getChannelId());
if (null == accountSettingDto) {
return "";
}
String protocol = accountSettingDto.getProtocol();
if (StringUtils.isEmpty(protocol)) {
protocol = ChannelConstants.HTTP;
}
sbu.append(protocol).append(accountSettingDto.getDomain()).append("/W")
.append(accountSettingDto.getAccountSettingId()).append("/clock").append("?wxGroupId=")
.append(wxGroupId).append("&wxUserId=").append(wxUserId);
}
return UrlUtils.getShortUrl4Own(sbu.toString());
}
private String getClockRewardUrl(Long clockPrizeId){
......@@ -519,7 +530,7 @@ public class WeixinClockBizImpl implements WeixinClockBiz {
//获取我的新排名
Integer newOrder = weixinClockMemberDao.getMyNewOrder(wechatGroupId, userWxId);
String clockRewardUrl = getClockRewardUrl(weixinClockDto.getClockPrizeId());
String clockRankUrl = getClockRankUrl(wechatGroupId, userWxId);
String clockRankUrl = getClockRankUrl(weixinClockDto.getClockPrizeId(), wechatGroupId, userWxId);
Calendar today = Calendar.getInstance();
int month = today.get(Calendar.MONTH) + 1;
int dayOfMonth = today.get(Calendar.DAY_OF_MONTH);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment