Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐少华
midjourney-proxy
Commits
d9e3e2ed
Commit
d9e3e2ed
authored
Sep 10, 2019
by
裴大威
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat-zyj-riddle' into 'master'
猜谜语文案修改 See merge request rays/pcloud-book!147
parents
ae543c96
877896e1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
RiddleRecordBizImpl.java
.../com/pcloud/book/riddle/biz/impl/RiddleRecordBizImpl.java
+4
-4
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/riddle/biz/impl/RiddleRecordBizImpl.java
View file @
d9e3e2ed
...
...
@@ -269,7 +269,7 @@ public class RiddleRecordBizImpl implements RiddleRecordBiz {
//发送规则
String
reply
=
getRandomReply
(
RiddleReplyTypeEnum
.
rule
.
getCode
());
Integer
ranking
=
riddleRecordDao
.
getGroupRanking
(
wxGroupId
);
reply
=
reply
+
"\n"
+
"目前本群总共猜对"
+
correctCount
+
"题,群排名第"
+
ranking
+
"名,大家加油。"
;
reply
=
reply
+
"\n"
+
"目前本群总共猜对"
+
correctCount
+
"题,
所有微信群中本
群排名第"
+
ranking
+
"名,大家加油。"
;
sendWeixinTextMessage
(
wxId
,
wxGroupId
,
reply
,
ip
,
null
);
//发送题目,保存该题目
if
(
null
!=
currentRiddle
)
{
//发送上次题目
...
...
@@ -299,7 +299,7 @@ public class RiddleRecordBizImpl implements RiddleRecordBiz {
public
void
endGame
(
RiddleRecord
insertRecord
,
String
wxGroupId
,
String
wxId
,
String
ip
,
Integer
grade
,
Integer
finishCount
)
{
Integer
correctCount
=
riddleRecordDao
.
getCorrectCountByGroup
(
wxGroupId
,
finishCount
);
Integer
ranking
=
riddleRecordDao
.
getGroupRanking
(
wxGroupId
);
String
text
=
"好嘞,再见,爱你们哦。目前本群总共猜对"
+
correctCount
+
"题,群排名第"
+
ranking
+
"名,大家加油。"
;
String
text
=
"好嘞,再见,爱你们哦。目前本群总共猜对"
+
correctCount
+
"题,
所有微信群中本
群排名第"
+
ranking
+
"名,大家加油。"
;
//发送结束语
sendWeixinTextMessage
(
wxId
,
wxGroupId
,
text
,
ip
,
null
);
//保存结束记录
...
...
@@ -424,7 +424,7 @@ public class RiddleRecordBizImpl implements RiddleRecordBiz {
Integer
correctCount
=
riddleRecordDao
.
getCorrectCountByGroup
(
wxGroupId
,
riddleRecord
.
getFinishCount
());
Integer
ranking
=
riddleRecordDao
.
getGroupRanking
(
wxGroupId
);
String
reply
=
getRandomReply
(
RiddleReplyTypeEnum
.
no_reply_end
.
getCode
());
String
text
=
reply
+
"目前本群总共猜对"
+
correctCount
+
"题,群排名第"
+
ranking
+
"名,大家加油。"
;
String
text
=
reply
+
"目前本群总共猜对"
+
correctCount
+
"题,
所有微信群中本
群排名第"
+
ranking
+
"名,大家加油。"
;
if
(!
text
.
contains
(
"关键词"
))
{
text
=
text
+
"想玩记得回复关键词“猜谜语”就可以召唤我啦。"
;
}
...
...
@@ -549,7 +549,7 @@ public class RiddleRecordBizImpl implements RiddleRecordBiz {
String
correctContent
=
"给你点赞,答对本轮游戏最后一题,现在发成绩单咯,下一轮游戏我们不见不散哦。"
;
sendWeixinTextMessage
(
wxId
,
wxGroupId
,
correctContent
,
ip
,
wxUserId
);
Integer
ranking
=
riddleRecordDao
.
getGroupRanking
(
wxGroupId
);
String
before
=
"目前本群总共猜对"
+
correctCount
+
"题,群排名第"
+
ranking
+
"名,大家加油。\n"
+
String
before
=
"目前本群总共猜对"
+
correctCount
+
"题,
所有微信群中本
群排名第"
+
ranking
+
"名,大家加油。\n"
+
"--------------------------------\n本轮成绩如下:\n"
;
List
<
UserRankingDTO
>
rankingDTOS
=
riddleRecordDao
.
getUserRanking
(
wxGroupId
,
startTime
);
if
(
ListUtils
.
isEmpty
(
rankingDTOS
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment