xiaoyong931011
2023-10-17 58b489d68754d2d67354d0c86409666ddc5ca28d
src/main/java/cc/mrbird/febs/rabbit/producter/AgentProducer.java
@@ -58,4 +58,16 @@
                correlationData);
    }
    /**
     * 自动发送
     */
    public void sendAutoSendMsg(Long groupId) {
        log.info("自动发送:{}", groupId);
        CorrelationData correlationData = new CorrelationData(IdUtil.simpleUUID());
        rabbitTemplate.convertAndSend(RabbitQueueEnum.IM_REDBAG_AUTO_SEND.getExchange(),
                RabbitQueueEnum.IM_REDBAG_AUTO_SEND.getRoute(),
                groupId,
                correlationData);
    }
}