@Override
    public List<WeChatMessage> handleMsg(List<Message> messages) {
        if (null != messages && messages.size() > 0) {
            List<WeChatMessage> weChatMessages = new ArrayList<>(messages.size());
            boolean             hashNewMsg     = false;
            for (Message message : messages) {
                WeChatMessage weChatMessage = this.processMsg(message);
                if (null != weChatMessage) {
                    weChatMessages.add(weChatMessage);
                    hashNewMsg = true;
                }
            }
            if (hashNewMsg) {
                log.info("你有新的消息");
            }
            return weChatMessages;
        }
        return null;
    }
@Override
    public List<WeChatMessage> handleMsg(List<Message> messages) {
        if (null != messages && messages.size() > 0) {
            List<WeChatMessage> weChatMessages = new ArrayList<>(messages.size());
            boolean             hashNewMsg     = false;
            for (Message message : messages) {
                WeChatMessage weChatMessage = this.processMsg(message);
                if (null != weChatMessage) {
                    weChatMessages.add(weChatMessage);
                    hashNewMsg = true;
                }
            }
            if (hashNewMsg) {
                log.info("你有新的消息");
            }
            return weChatMessages;
        }
        return null;
    }
@ Override public List < WeChatMessage > handleMsg ( List < Message > messages ) { if ( null != messages && messages . size ( ) > 0 ) { List < WeChatMessage > weChatMessages = new ArrayList <> ( messages . size ( ) ) ; boolean hashNewMsg = false ; for ( Message message : messages ) { WeChatMessage weChatMessage = this . processMsg ( message ) ; if ( null != weChatMessage ) { weChatMessages . add ( weChatMessage ) ; hashNewMsg = true ; } } if ( hashNewMsg ) { log . info ( "你有新的消息"); } return weChatMessages ; } return null ; }
处理新消息

@param messages 要处理的消息列表
处理新消息