Browse Source

设计器论坛登陆要先从DesignerEnvManager获取

master
juhaoyu 8 years ago
parent
commit
1603f98c6f
  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