From e523b23ac4af5dbe3ded24d174010782000a5217 Mon Sep 17 00:00:00 2001 From: PanLi320 <854954082@qq.com> Date: Sat, 8 Oct 2016 18:22:51 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=E7=A7=81=E4=BA=BA=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E7=9A=84=E8=AE=BA=E5=9D=9B=E8=B4=A6=E5=8F=B7=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/com/fr/design/mainframe/bbs/UserInfoLabel.java | 8 +++++++- .../src/com/fr/design/extra/PluginWebBridge.java | 6 +++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/designer/src/com/fr/design/mainframe/bbs/UserInfoLabel.java b/designer/src/com/fr/design/mainframe/bbs/UserInfoLabel.java index 1c3f83aa0..d0fe7dadb 100644 --- a/designer/src/com/fr/design/mainframe/bbs/UserInfoLabel.java +++ b/designer/src/com/fr/design/mainframe/bbs/UserInfoLabel.java @@ -87,6 +87,7 @@ public class UserInfoLabel extends UILabel{ LoginCheckContext.addLoginCheckListener(new LoginCheckListener() { @Override public void loginChecked() { + /* if (bbsLoginDialog == null) { bbsLoginDialog = new BBSLoginDialog(DesignerContext.getDesignerFrame(), UserInfoLabel.this); } @@ -94,6 +95,7 @@ public class UserInfoLabel extends UILabel{ bbsLoginDialog.showTipForDownloadPluginWithoutLogin(); bbsLoginDialog.setModal(true); bbsLoginDialog.showWindow(); + */ } }); @@ -282,7 +284,11 @@ public class UserInfoLabel extends UILabel{ public void mousePressed(MouseEvent e) { if(StringUtils.isNotEmpty(userName)){ 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) { FRContext.getLogger().info(exp.getMessage()); } diff --git a/designer_base/src/com/fr/design/extra/PluginWebBridge.java b/designer_base/src/com/fr/design/extra/PluginWebBridge.java index 6f3117afb..b192873d8 100644 --- a/designer_base/src/com/fr/design/extra/PluginWebBridge.java +++ b/designer_base/src/com/fr/design/extra/PluginWebBridge.java @@ -379,7 +379,11 @@ public class PluginWebBridge { */ public void getPriviteMessage() { 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) { FRContext.getLogger().info(exp.getMessage()); }