Commit 5ff8c42a authored by yanzg's avatar yanzg

修改MQ请求尸体,防止出错

parent aa040dfa
......@@ -94,8 +94,8 @@ public class MessageServiceImpl implements MessageService {
* @return
*/
private String sendContent(String messageId, MessageVo req, boolean now) {
if (!StringHelper.compare(req.getExchangeName(), YzgMqConsumer.YZG_MQ_SYSTEM_QUEUE_DELAY)
&& !StringHelper.compare(req.getExchangeName(), YzgMqConsumer.YZG_MQ_SYSTEM_QUEUE)) {
if (!req.getExchangeName().startsWith(YzgMqConsumer.YZG_MQ_SYSTEM_QUEUE_DELAY)
&& !req.getExchangeName().startsWith(YzgMqConsumer.YZG_MQ_SYSTEM_QUEUE)) {
if (req.getDedTime() > 0 && !now) {
// 延迟队列处理
req.setMessageId(messageId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment