Browse Source

格式修改

master
李攀 8 years ago
parent
commit
c772852a9c
  1. 4
      designer_base/src/com/fr/design/extra/QQLoginWebBridge.java
  2. 2
      designer_base/src/com/fr/design/extra/exe/GetLoginInfoExecutor.java

4
designer_base/src/com/fr/design/extra/QQLoginWebBridge.java

@ -3,6 +3,7 @@ package com.fr.design.extra;
import com.fr.design.DesignerEnvManager; import com.fr.design.DesignerEnvManager;
import com.fr.design.dialog.UIDialog; import com.fr.design.dialog.UIDialog;
import com.fr.design.gui.ilable.UILabel; import com.fr.design.gui.ilable.UILabel;
import com.fr.general.SiteCenter;
import javafx.scene.web.WebEngine; import javafx.scene.web.WebEngine;
import org.json.JSONObject; import org.json.JSONObject;
@ -19,7 +20,6 @@ public class QQLoginWebBridge {
private WebEngine webEngine; private WebEngine webEngine;
private static String LOGINSUCCESS = "ok"; private static String LOGINSUCCESS = "ok";
private static String LOGINFAILED = "failed"; private static String LOGINFAILED = "failed";
private static String BBS_URL = "http://bbs.fanruan.com";
private UIDialog uiDialog; private UIDialog uiDialog;
private UILabel uiLabel; private UILabel uiLabel;
private UIDialog qqDialog; private UIDialog qqDialog;
@ -104,7 +104,7 @@ public class QQLoginWebBridge {
//账号没有QQ授权 //账号没有QQ授权
closeQQWindow(); closeQQWindow();
try { try {
Desktop.getDesktop().browse(new URI(BBS_URL)); Desktop.getDesktop().browse(new URI(SiteCenter.getInstance().acquireUrlByKind("bbs.default")));
}catch (Exception exp) { }catch (Exception exp) {
} }
} }

2
designer_base/src/com/fr/design/extra/exe/GetLoginInfoExecutor.java

@ -26,7 +26,7 @@ public class GetLoginInfoExecutor implements Executor {
@Override @Override
public void run(Process<String> process) { public void run(Process<String> process) {
String username = DesignerEnvManager.getEnvManager().getBBSName(); String username = DesignerEnvManager.getEnvManager().getBBSName();
if (username == null || username.equals("")) { if (username == null || username.isEmpty()) {
}else { }else {
result = username; result = username;
} }

Loading…
Cancel
Save