From 5c99654a4d85c282ec79e01d5cc1d048e12e622d Mon Sep 17 00:00:00 2001 From: Eiriksgata <2353686862@qq.com> Date: Mon, 19 Sep 2022 10:25:49 +0800 Subject: [PATCH] Fix #111,#112 --- .../eiriksgata/rulateday/instruction/CardsController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rulateday-server/src/main/java/indi/eiriksgata/rulateday/instruction/CardsController.java b/rulateday-server/src/main/java/indi/eiriksgata/rulateday/instruction/CardsController.java index 9a20d0f..98d1aed 100644 --- a/rulateday-server/src/main/java/indi/eiriksgata/rulateday/instruction/CardsController.java +++ b/rulateday-server/src/main/java/indi/eiriksgata/rulateday/instruction/CardsController.java @@ -79,7 +79,7 @@ public String drawAdd(MessageData data) { } CardsTypeList cardsTypeList = cardsTypeListMapper.selectByName(data.getMessage()); if (cardsTypeList == null) { - return "cards.draw.not.found"; + return CustomText.getText("cards.draw.not.found"); } String[] addDataArr = cardsTypeList.getContent().split(","); final Long[] groupId = new Long[1]; @@ -187,7 +187,7 @@ public void groupTemp(GroupTempMessageEvent event) { return CustomText.getText("cards.draw.hide.success"); } - @InstructReflex(value = {".draw"}, priority = 5) + @InstructReflex(value = {".draw"}, priority = 2) public String drawOut(MessageData data) { final long[] groupId = new long[1]; EventUtils.eventCallback(data.getEvent(), new EventAdapter() {