Skip to content

Commit

Permalink
恢复抽卡
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyodi committed May 6, 2022
1 parent f41b182 commit 4f48128
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/main/java/com/badeling/msbot/serviceImpl/MsgServiceImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,7 @@ private ReplyMsg handleNameMsg(ReceiveMsg receiveMsg) {
e.printStackTrace();
}
}
/**

if(raw_message.contains("抽卡")) {
String mes;
try {
Expand All @@ -1299,9 +1299,8 @@ private ReplyMsg handleNameMsg(ReceiveMsg receiveMsg) {
}
replyMsg.setReply(mes);
return replyMsg;
}**/


}

if(raw_message.contains("抽奖")||raw_message.contains("魔女")||raw_message.contains("百分百")) {
String mes;
MonvTime monvTime = monvTimeRepository.findRoleBynumber(receiveMsg.getSender().getUser_id());
Expand Down Expand Up @@ -1331,8 +1330,8 @@ private ReplyMsg handleNameMsg(ReceiveMsg receiveMsg) {
firstmark = true;
}

Long cd_time = (time_now.getTime()-monvTime.getUpdateTime().getTime())/ 1000;
if (cd_time >= MsbotConst.monv_cd || firstmark==true){
long cd_time = (time_now.getTime()-monvTime.getUpdateTime().getTime())/ 1000;
if (cd_time >= MsbotConst.monv_cd || firstmark){
monvTime.setUpdateTime(time_now);
monvTimeRepository.modifyUpdateTime(monvTime.getId(), monvTime.getUpdateTime());

Expand Down

0 comments on commit 4f48128

Please sign in to comment.