22
33import java .util .ArrayList ;
44import java .util .Arrays ;
5- import java .util .HashMap ;
5+ import java .util .LinkedHashMap ;
66import java .util .List ;
77import java .util .Map ;
88import java .util .stream .Collectors ;
@@ -45,7 +45,7 @@ public void receiveMsg(String jsonString) {
4545 WxPpMsgDTO dto = JSON .parseObject (jsonString , WxPpMsgDTO .class );
4646 // 有开启的群聊配置
4747 if (weChatFerryProperties .getOpenMsgGroupSwitch () && !weChatFerryProperties .getOpenMsgGroups ().isEmpty ()) {
48- Map <String , List <String >> openMsgGroupMap = new HashMap <>();
48+ Map <String , List <String >> openMsgGroupMap = new LinkedHashMap <>();
4949 String allFnNoStr = "" ;
5050 List <String > allFnNoList = new ArrayList <>();
5151 if (weChatFerryProperties .getOpenMsgGroups ().containsKey ("ALL" )) {
@@ -79,6 +79,7 @@ public void receiveMsg(String jsonString) {
7979
8080 // 指定处理的群聊
8181 if (!openMsgGroupMap .isEmpty ()) {
82+ log .debug ("[收到消息后处理]-[汇总后的所有功能]-openMsgGroupMap:{}" , openMsgGroupMap );
8283 List <String > fnNoList = new ArrayList <>();
8384 // 先执行所有群都需要执行的
8485 if (openMsgGroupMap .containsKey ("ALL" )) {
@@ -90,6 +91,7 @@ public void receiveMsg(String jsonString) {
9091 }
9192 // 需要执行的策略
9293 if (!CollectionUtils .isEmpty (fnNoList )) {
94+ log .debug ("[收到消息后处理]-[汇总后的单群功能]-fnNoList:{},群号:{}" , fnNoList , dto .getRoomId ());
9395 for (String no : fnNoList ) {
9496 // 根据功能号获取对应的策略
9597 ReceiveMsgStrategy receiveMsgStrategy = ReceiveMsgFactory .getStrategy (no );
0 commit comments