Browse Source

bug fix

master
XiaXiang 8 years ago
parent
commit
e65dda5529
  1. 18
      designer/src/com/fr/design/mainframe/bbs/UserInfoLabel.java

18
designer/src/com/fr/design/mainframe/bbs/UserInfoLabel.java

@ -213,15 +213,15 @@ public class UserInfoLabel extends UILabel {
para.put("username", encode(encode(userName)));
HttpClient getMessage = new HttpClient(SiteCenter.getInstance().acquireUrlByKind("bbs.message"), para);
getMessage.asGet();
// if (getMessage.isServerAlive()) {
// try {
// String res = getMessage.getResponseText();
// if (StringUtils.isNotEmpty(res)) {
// setMessageCount(Integer.parseInt(res));
// }
// } catch (Exception e) {
// }
// }
if (getMessage.isServerAlive()) {
try {
String res = getMessage.getResponseText();
if (StringUtils.isNotEmpty(res)) {
setMessageCount(Integer.parseInt(res));
}
} catch (Exception e) {
}
}
sleep(CHECK_MESSAGE_TIME);
}
}

Loading…
Cancel
Save