Commit d9e3e2ed by 裴大威

Merge branch 'feat-zyj-riddle' into 'master'

猜谜语文案修改

See merge request rays/pcloud-book!147
parents ae543c96 877896e1
...@@ -269,7 +269,7 @@ public class RiddleRecordBizImpl implements RiddleRecordBiz { ...@@ -269,7 +269,7 @@ public class RiddleRecordBizImpl implements RiddleRecordBiz {
//发送规则 //发送规则
String reply = getRandomReply(RiddleReplyTypeEnum.rule.getCode()); String reply = getRandomReply(RiddleReplyTypeEnum.rule.getCode());
Integer ranking = riddleRecordDao.getGroupRanking(wxGroupId); Integer ranking = riddleRecordDao.getGroupRanking(wxGroupId);
reply = reply + "\n" + "目前本群总共猜对" + correctCount + "题,群排名第" + ranking + "名,大家加油。"; reply = reply + "\n" + "目前本群总共猜对" + correctCount + "题,所有微信群中本群排名第" + ranking + "名,大家加油。";
sendWeixinTextMessage(wxId, wxGroupId, reply, ip, null); sendWeixinTextMessage(wxId, wxGroupId, reply, ip, null);
//发送题目,保存该题目 //发送题目,保存该题目
if (null != currentRiddle) {//发送上次题目 if (null != currentRiddle) {//发送上次题目
...@@ -299,7 +299,7 @@ public class RiddleRecordBizImpl implements RiddleRecordBiz { ...@@ -299,7 +299,7 @@ public class RiddleRecordBizImpl implements RiddleRecordBiz {
public void endGame(RiddleRecord insertRecord, String wxGroupId, String wxId, String ip, Integer grade, Integer finishCount) { public void endGame(RiddleRecord insertRecord, String wxGroupId, String wxId, String ip, Integer grade, Integer finishCount) {
Integer correctCount = riddleRecordDao.getCorrectCountByGroup(wxGroupId, finishCount); Integer correctCount = riddleRecordDao.getCorrectCountByGroup(wxGroupId, finishCount);
Integer ranking = riddleRecordDao.getGroupRanking(wxGroupId); Integer ranking = riddleRecordDao.getGroupRanking(wxGroupId);
String text = "好嘞,再见,爱你们哦。目前本群总共猜对" + correctCount + "题,群排名第" + ranking + "名,大家加油。"; String text = "好嘞,再见,爱你们哦。目前本群总共猜对" + correctCount + "题,所有微信群中本群排名第" + ranking + "名,大家加油。";
//发送结束语 //发送结束语
sendWeixinTextMessage(wxId, wxGroupId, text, ip, null); sendWeixinTextMessage(wxId, wxGroupId, text, ip, null);
//保存结束记录 //保存结束记录
...@@ -424,7 +424,7 @@ public class RiddleRecordBizImpl implements RiddleRecordBiz { ...@@ -424,7 +424,7 @@ public class RiddleRecordBizImpl implements RiddleRecordBiz {
Integer correctCount = riddleRecordDao.getCorrectCountByGroup(wxGroupId, riddleRecord.getFinishCount()); Integer correctCount = riddleRecordDao.getCorrectCountByGroup(wxGroupId, riddleRecord.getFinishCount());
Integer ranking = riddleRecordDao.getGroupRanking(wxGroupId); Integer ranking = riddleRecordDao.getGroupRanking(wxGroupId);
String reply = getRandomReply(RiddleReplyTypeEnum.no_reply_end.getCode()); String reply = getRandomReply(RiddleReplyTypeEnum.no_reply_end.getCode());
String text = reply + "目前本群总共猜对" + correctCount + "题,群排名第" + ranking + "名,大家加油。"; String text = reply + "目前本群总共猜对" + correctCount + "题,所有微信群中本群排名第" + ranking + "名,大家加油。";
if (!text.contains("关键词")) { if (!text.contains("关键词")) {
text = text + "想玩记得回复关键词“猜谜语”就可以召唤我啦。"; text = text + "想玩记得回复关键词“猜谜语”就可以召唤我啦。";
} }
...@@ -549,7 +549,7 @@ public class RiddleRecordBizImpl implements RiddleRecordBiz { ...@@ -549,7 +549,7 @@ public class RiddleRecordBizImpl implements RiddleRecordBiz {
String correctContent = "给你点赞,答对本轮游戏最后一题,现在发成绩单咯,下一轮游戏我们不见不散哦。"; String correctContent = "给你点赞,答对本轮游戏最后一题,现在发成绩单咯,下一轮游戏我们不见不散哦。";
sendWeixinTextMessage(wxId, wxGroupId, correctContent, ip, wxUserId); sendWeixinTextMessage(wxId, wxGroupId, correctContent, ip, wxUserId);
Integer ranking = riddleRecordDao.getGroupRanking(wxGroupId); Integer ranking = riddleRecordDao.getGroupRanking(wxGroupId);
String before = "目前本群总共猜对" + correctCount + "题,群排名第" + ranking + "名,大家加油。\n" + String before = "目前本群总共猜对" + correctCount + "题,所有微信群中本群排名第" + ranking + "名,大家加油。\n" +
"--------------------------------\n本轮成绩如下:\n"; "--------------------------------\n本轮成绩如下:\n";
List<UserRankingDTO> rankingDTOS = riddleRecordDao.getUserRanking(wxGroupId, startTime); List<UserRankingDTO> rankingDTOS = riddleRecordDao.getUserRanking(wxGroupId, startTime);
if (ListUtils.isEmpty(rankingDTOS)) { if (ListUtils.isEmpty(rankingDTOS)) {
......
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