Browse Source

Merge pull request #366 in BA/design from ~LEE/design:dev to dev

* commit '768c49fd4f4b2c3ea4c35bf55531cb8d690205bb':
  bugfix:QQ授权登陆之后,关闭设计器再登陆,用户名不显示
master
superman 8 years ago
parent
commit
50c7a97bdb
  1. 9
      designer/src/com/fr/design/mainframe/bbs/UserInfoPane.java

9
designer/src/com/fr/design/mainframe/bbs/UserInfoPane.java

@ -77,12 +77,11 @@ public class UserInfoPane extends BasicPane{
@Override @Override
public void run() { public void run() {
String username = DesignerEnvManager.getEnvManager().getBBSName(); String username = DesignerEnvManager.getEnvManager().getBBSName();
String password = DesignerEnvManager.getEnvManager().getBBSPassword(); String inShowUsername = DesignerEnvManager.getEnvManager().getInShowBBsName();
String loginResult = LoginWebBridge.getHelper().login(username, password); if (StringUtils.isEmpty(username) && StringUtils.isEmpty(inShowUsername)){
if (loginResult.equals(LOGININ)) {
markSignIn(username);
}else {
markUnSignIn(); markUnSignIn();
} else {
markSignIn(username);
} }
} }
}); });

Loading…
Cancel
Save