Commit 6a0dc72bea8467f2557e5736ae2cd390764768cf

Authored by wangbin
1 parent 9d52f229
Exists in master

fix a bug

@@ -55,7 +55,7 @@ uploadArchives { @@ -55,7 +55,7 @@ uploadArchives {
55 authentication(userName: NEXUS_USERNAME, password: NEXUS_PASSWORD) 55 authentication(userName: NEXUS_USERNAME, password: NEXUS_PASSWORD)
56 } 56 }
57 pom.project { 57 pom.project {
58 - version '1.1.2' 58 + version '1.1.6'
59 artifactId ARTIFACT_Id 59 artifactId ARTIFACT_Id
60 groupId GROUP_ID 60 groupId GROUP_ID
61 packaging TYPE 61 packaging TYPE
src/main/java/com/taover/heartbeat/bean/ReformInstance.java
@@ -46,7 +46,7 @@ public class ReformInstance { @@ -46,7 +46,7 @@ public class ReformInstance {
46 } 46 }
47 try { 47 try {
48 for(String weixinWxid: this.weixinWxidList) { 48 for(String weixinWxid: this.weixinWxidList) {
49 - if(weixinWxid == null || weixinWxid.trim().equals("")) { 49 + if(weixinWxid != null && !weixinWxid.trim().equals("")) {
50 UtilWeixinMsg.sendTextMessage(weixinWxid, weixinContent); 50 UtilWeixinMsg.sendTextMessage(weixinWxid, weixinContent);
51 } 51 }
52 } 52 }
src/main/java/com/taover/heartbeat/bean/ServerInstance.java
@@ -12,10 +12,10 @@ public class ServerInstance implements Instance { @@ -12,10 +12,10 @@ public class ServerInstance implements Instance {
12 private String url; 12 private String url;
13 private int fixRateSec; 13 private int fixRateSec;
14 private int maxWaitSec; 14 private int maxWaitSec;
15 - private long latestRequestUnixtime; 15 + private long latestRequestUnixtime = -1;
16 private ServerResponse latestServerResponse; 16 private ServerResponse latestServerResponse;
17 - private int errorServerResponseCount;  
18 - private boolean isIncrErrorServerResponseCount; 17 + private int errorServerResponseCount = 0;
  18 + private boolean isIncrErrorServerResponseCount = false;
19 19
20 public ServerInstance(String code, String url, int fixRateSec, int maxWaitSec) throws Exception { 20 public ServerInstance(String code, String url, int fixRateSec, int maxWaitSec) throws Exception {
21 super(); 21 super();