Browse Source

Merge pull request #1400 in BA/design from ~VITO/design:release/9.0 to release/9.0

* commit '1c33bfe011c4044a6f060bf76300f592b9a6a86a':
  REPORT-5143 设计器支持手机邮箱登录
master
superman 7 years ago
parent
commit
560b3716e0
  1. 14
      designer_base/src/com/fr/design/extra/PluginWebBridge.java

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

@ -5,6 +5,7 @@ import com.fr.base.FRContext;
import com.fr.design.RestartHelper;
import com.fr.design.bbs.BBSLoginUtils;
import com.fr.design.dialog.UIDialog;
import com.fr.design.extra.exe.PluginLoginExecutor;
import com.fr.design.extra.exe.callback.JSCallback;
import com.fr.design.gui.ilable.UILabel;
import com.fr.general.FRLogger;
@ -17,6 +18,7 @@ import com.fr.plugin.context.PluginMarker;
import com.fr.plugin.manage.PluginManager;
import com.fr.stable.ArrayUtils;
import com.fr.stable.StringUtils;
import javafx.concurrent.Task;
import javafx.scene.web.WebEngine;
import javafx.stage.FileChooser;
import javafx.stage.Stage;
@ -491,6 +493,18 @@ public class PluginWebBridge {
this.uiLabel = uiLabel;
}
/**
* 设计器端的用户登录
*
* @param username 用户名
* @param password 密码
* @return 登录信息标志
*/
public void defaultLogin(String username, String password, final JSObject callback) {
Task<Void> task = new PluginTask<>(webEngine, callback, new PluginLoginExecutor(username, password));
new Thread(task).start();
}
/**
* 弹出QQ授权页面
*/

Loading…
Cancel
Save