diff --git a/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/utils/SendMqMsgUtils.java b/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/utils/SendMqMsgUtils.java index 7d9889d77b..45493abcc8 100644 --- a/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/utils/SendMqMsgUtils.java +++ b/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/utils/SendMqMsgUtils.java @@ -41,7 +41,6 @@ public class SendMqMsgUtils { } log.info("sendMsg param:{}", JSON.toJSONString(msg)); try { - // TODO ValidatorUtils.validateEntity(msg, DefaultGroup.class); } catch (ValidateException e) { return new Result().error(e.getMsg()); @@ -53,9 +52,8 @@ public class SendMqMsgUtils { int retryTime = 0; Result result = null; do { - retryTime++; result = HttpClientManager.getInstance().sendPostByHttps(msg.getRequestUrl(), JSON.toJSONString(msg)); - log.info("sendMsg retryTime:{},result:{}", retryTime, JSON.toJSONString(result)); + log.info("sendMsg retryTime:{},result:{}", retryTime++, JSON.toJSONString(result)); } while ((!result.success()) && retryTime < 2); if (result.success()) {