xiaoyong931011
2023-10-13 7ecd2c9bb7b1a77fd2d55a59b2ce85c9ddb26ee7
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);
    }
}