Commit d289f5b9 by 杨涛

fix 连接重新拼接

parent bb5bb62a
...@@ -384,12 +384,23 @@ public class WeixinClockBizImpl implements WeixinClockBiz { ...@@ -384,12 +384,23 @@ public class WeixinClockBizImpl implements WeixinClockBiz {
return content.equalsIgnoreCase(aimKeyword); return content.equalsIgnoreCase(aimKeyword);
} }
private String getClockRankUrl(String wxGroupId, String wxUserId){ private String getClockRankUrl(Long clockPrizeId, String wxGroupId, String wxUserId){
String clockRankUrl = wechatGroupLinkPrefix StringBuffer sbu=new StringBuffer();
.concat("/clock") if(null != clockPrizeId && !clockPrizeId.equals(0L)) {
.concat("?wxGroupId=").concat(wxGroupId) AppDto appDto = appConsr.getBaseById(clockPrizeId);
.concat("&wxUserId=").concat(wxUserId); AccountSettingDto accountSettingDto = qrcodeSceneConsr.getWechatInfo(appDto.getChannelId());
return UrlUtils.getShortUrl4Own(clockRankUrl); 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){ private String getClockRewardUrl(Long clockPrizeId){
...@@ -519,7 +530,7 @@ public class WeixinClockBizImpl implements WeixinClockBiz { ...@@ -519,7 +530,7 @@ public class WeixinClockBizImpl implements WeixinClockBiz {
//获取我的新排名 //获取我的新排名
Integer newOrder = weixinClockMemberDao.getMyNewOrder(wechatGroupId, userWxId); Integer newOrder = weixinClockMemberDao.getMyNewOrder(wechatGroupId, userWxId);
String clockRewardUrl = getClockRewardUrl(weixinClockDto.getClockPrizeId()); String clockRewardUrl = getClockRewardUrl(weixinClockDto.getClockPrizeId());
String clockRankUrl = getClockRankUrl(wechatGroupId, userWxId); String clockRankUrl = getClockRankUrl(weixinClockDto.getClockPrizeId(), wechatGroupId, userWxId);
Calendar today = Calendar.getInstance(); Calendar today = Calendar.getInstance();
int month = today.get(Calendar.MONTH) + 1; int month = today.get(Calendar.MONTH) + 1;
int dayOfMonth = today.get(Calendar.DAY_OF_MONTH); 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