Browse Source

Merge pull request #38 in PF/design from ~JU/co-pf-9.0-design:9.0 to 9.0

* commit '62afd5af2bfc45bbaae79750479141eca9d8b730':
  设计器论坛登陆要先从DesignerEnvManager获取
master
superman 8 years ago
parent
commit
8cfae62c69
  1. 8
      designer_base/src/com/fr/design/extra/PluginOperateUtils.java

8
designer_base/src/com/fr/design/extra/PluginOperateUtils.java

@ -237,6 +237,14 @@ public class PluginOperateUtils {
}
public static void getLoginInfo(JSCallback jsCallback) {
if (!BBSPluginLogin.getInstance().hasLogin()) {
String userName = DesignerEnvManager.getEnvManager().getBBSName();
String password = DesignerEnvManager.getEnvManager().getBBSPassword();
if (StringUtils.isNotBlank(userName)) {
BBSPluginLogin.getInstance().login(new BBSUserInfo(userName, password));
}
}
BBSUserInfo bbsUserInfo = BBSPluginLogin.getInstance().getUserInfo();
String username = bbsUserInfo == null ? "" : bbsUserInfo.getUserName();
String inShowUsername = DesignerEnvManager.getEnvManager().getInShowBBsName();

Loading…
Cancel
Save