Commit e392cdcd by 杨涛

修改显示内容

parent d289f5b9
...@@ -534,9 +534,16 @@ public class WeixinClockBizImpl implements WeixinClockBiz { ...@@ -534,9 +534,16 @@ public class WeixinClockBizImpl implements WeixinClockBiz {
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);
sendContent = "@" + nickname + " "+ weixinClockDto.getClockIntroduction() + "\n" + month + "月" + dayOfMonth + "日打卡成功,你已累积打卡" Integer grantNum = weixinClockRewardDao.getGrantNumFromReward(weixinClockDto.getWeixinClockId(), clockDays);
+ clockDays + "天,排名第" + if(null != grantNum && !grantNum.equals(0)){
newOrder + ",明天继续!" + "\n" + "\n" + "查看排行榜:" + clockRankUrl + "\n" + "点击抽奖,即可有机会获得精美礼品哦:" + clockRewardUrl; sendContent = "@" + nickname + " "+ weixinClockDto.getClockIntroduction() + "\n" + month + "月" + dayOfMonth + "日打卡成功,你已累积打卡"
+ clockDays + "天,排名第" +
newOrder + ",明天继续!" + "\n" + "\n" + "查看排行榜:" + clockRankUrl + "\n" + "点击抽奖,即可有机会获得精美礼品哦:" + clockRewardUrl;
}else {
sendContent = "@" + nickname + " "+ weixinClockDto.getClockIntroduction() + "\n" + month + "月" + dayOfMonth + "日打卡成功,你已累积打卡"
+ clockDays + "天,排名第" +
newOrder + ",明天继续!" + "\n" + "\n" + "查看排行榜:" + clockRankUrl;
}
} else { } else {
sendContent = "@" + nickname + " ,你今天已经打过卡了,明天再继续!"; sendContent = "@" + nickname + " ,你今天已经打过卡了,明天再继续!";
} }
......
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