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 6b1310f5bd..e1b96f7eed 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 @@ -53,8 +53,9 @@ public class SendMqMsgUtils { Result result = null; log.info("sendMsg url:{},param:{}", msg.getRequestUrl(), JSON.toJSONString(msg)); 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()) {