diff --git a/src/main/java/com/badeling/msbot/serviceImpl/MsgServiceImpl.java b/src/main/java/com/badeling/msbot/serviceImpl/MsgServiceImpl.java index 8afdf04..8e58bdf 100644 --- a/src/main/java/com/badeling/msbot/serviceImpl/MsgServiceImpl.java +++ b/src/main/java/com/badeling/msbot/serviceImpl/MsgServiceImpl.java @@ -1288,7 +1288,7 @@ private ReplyMsg handleNameMsg(ReceiveMsg receiveMsg) { e.printStackTrace(); } } - /** + if(raw_message.contains("抽卡")) { String mes; try { @@ -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()); @@ -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());