daniel 8 years ago
parent
commit
5ee8cd6abc
  1. 9
      designer/src/com/fr/design/mainframe/bbs/UserInfoPane.java
  2. 2
      designer_base/src/com/fr/design/extra/QQLoginWebBridge.java
  3. 2
      designer_form/src/com/fr/design/mainframe/FormParaWidgetPane.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);
} }
} }
}); });

2
designer_base/src/com/fr/design/extra/QQLoginWebBridge.java

@ -117,7 +117,7 @@ public class QQLoginWebBridge {
//账号没有QQ授权 //账号没有QQ授权
closeQQWindow(); closeQQWindow();
try { try {
Desktop.getDesktop().browse(new URI(SiteCenter.getInstance().acquireUrlByKind("bbs.default"))); Desktop.getDesktop().browse(new URI(SiteCenter.getInstance().acquireUrlByKind("QQ_binding")));
}catch (Exception exp) { }catch (Exception exp) {
} }
} }

2
designer_form/src/com/fr/design/mainframe/FormParaWidgetPane.java

@ -192,7 +192,7 @@ public class FormParaWidgetPane extends JPanel{
} }
labelPane.add(label,BorderLayout.CENTER); labelPane.add(label,BorderLayout.CENTER);
reportPane.add(labelPane,BorderLayout.SOUTH); reportPane.add(labelPane,BorderLayout.SOUTH);
reportPane.setPreferredSize(new Dimension((int)jComponent.getPreferredSize().getWidth(),(int)reportPane.getPreferredSize().getHeight())); reportPane.setPreferredSize(new Dimension((int)reportPane.getPreferredSize().getWidth(),(int)reportPane.getPreferredSize().getHeight()));
return reportPane; return reportPane;
} }

Loading…
Cancel
Save