Commit 11f253af authored by yanzg's avatar yanzg

设置打包时可以通过GIT查看源码

parent 3fe363e0
......@@ -302,8 +302,11 @@ public class MqServiceImpl implements MqService {
@ApiOperation(value = "发送给指定服务器消息")
@Override
public String sendServerMessage(ServerMessageReqVo req) {
// 发送消息,等待下次重新发送
req.addPos();
if (!req.isNext()) {
throw new CodeException("达到最大次数,不会继续发送");
Log.error(MqServiceImpl.class, "达到最大次数,不会继续发送");
return StringHelper.EMPTY;
}
String queueName = req.getQueueName();
......@@ -333,11 +336,6 @@ public class MqServiceImpl implements MqService {
Log.error(MqServiceImpl.class, ex);
}
// 发送消息,等待下次重新发送
req.addPos();
if (!req.isNext()) {
throw new CodeException("达到最大次数,不会继续发送");
}
if (sendQueueName.isEmpty()) {
String json = JsonHelper.serialize(req);
return this.message(new MessageVo(req.getQueueName(), req.getQueueName(), json, req.getNextDelayTime()));
......
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