Browse Source

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

* commit 'e523b23ac4af5dbe3ded24d174010782000a5217':
  bugfix:私人消息的论坛账号同步
master
superman 8 years ago
parent
commit
2f2543461d
  1. 8
      designer/src/com/fr/design/mainframe/bbs/UserInfoLabel.java
  2. 6
      designer_base/src/com/fr/design/extra/PluginWebBridge.java

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

@ -87,6 +87,7 @@ public class UserInfoLabel extends UILabel{
LoginCheckContext.addLoginCheckListener(new LoginCheckListener() { LoginCheckContext.addLoginCheckListener(new LoginCheckListener() {
@Override @Override
public void loginChecked() { public void loginChecked() {
/*
if (bbsLoginDialog == null) { if (bbsLoginDialog == null) {
bbsLoginDialog = new BBSLoginDialog(DesignerContext.getDesignerFrame(), UserInfoLabel.this); bbsLoginDialog = new BBSLoginDialog(DesignerContext.getDesignerFrame(), UserInfoLabel.this);
} }
@ -94,6 +95,7 @@ public class UserInfoLabel extends UILabel{
bbsLoginDialog.showTipForDownloadPluginWithoutLogin(); bbsLoginDialog.showTipForDownloadPluginWithoutLogin();
bbsLoginDialog.setModal(true); bbsLoginDialog.setModal(true);
bbsLoginDialog.showWindow(); bbsLoginDialog.showWindow();
*/
} }
}); });
@ -282,7 +284,11 @@ public class UserInfoLabel extends UILabel{
public void mousePressed(MouseEvent e) { public void mousePressed(MouseEvent e) {
if(StringUtils.isNotEmpty(userName)){ if(StringUtils.isNotEmpty(userName)){
try { try {
Desktop.getDesktop().browse(new URI(SiteCenter.getInstance().acquireUrlByKind("bbs.default"))); String loginUrl = SiteCenter.getInstance().acquireUrlByKind("bbs.default") +
"&action=login&loginsubmit=yes&infloat=yes&lssubmit=yes&inajax=" +
"&username=" + DesignerEnvManager.getEnvManager().getBBSName() +
"&password=" + DesignerEnvManager.getEnvManager().getBBSPassword();
Desktop.getDesktop().browse(new URI(loginUrl));
} catch (Exception exp) { } catch (Exception exp) {
FRContext.getLogger().info(exp.getMessage()); FRContext.getLogger().info(exp.getMessage());
} }

6
designer_base/src/com/fr/design/extra/PluginWebBridge.java

@ -379,7 +379,11 @@ public class PluginWebBridge {
*/ */
public void getPriviteMessage() { public void getPriviteMessage() {
try { try {
Desktop.getDesktop().browse(new URI(SiteCenter.getInstance().acquireUrlByKind("bbs.default"))); String loginUrl = SiteCenter.getInstance().acquireUrlByKind("bbs.default") +
"&action=login&loginsubmit=yes&infloat=yes&lssubmit=yes&inajax=" +
"&username=" + DesignerEnvManager.getEnvManager().getBBSName() +
"&password=" + DesignerEnvManager.getEnvManager().getBBSPassword();
Desktop.getDesktop().browse(new URI(loginUrl));
}catch (Exception exp) { }catch (Exception exp) {
FRContext.getLogger().info(exp.getMessage()); FRContext.getLogger().info(exp.getMessage());
} }

Loading…
Cancel
Save