Browse Source

ip部分 sitecenter加了一下

bugfix:按钮初始化内容
master
PanLi320 8 years ago
parent
commit
c1e3dbf04e
  1. 3
      designer_base/src/com/fr/design/extra/QQLoginWebPane.java
  2. 3
      designer_base/src/com/fr/design/extra/ucenter/Client.java

3
designer_base/src/com/fr/design/extra/QQLoginWebPane.java

@ -150,7 +150,6 @@ public class QQLoginWebPane extends JFXPanel {
final BooleanProperty confirmationResult = new SimpleBooleanProperty(); final BooleanProperty confirmationResult = new SimpleBooleanProperty();
// initialize the confirmation dialog // initialize the confirmation dialog
final Stage dialog = new Stage(StageStyle.UTILITY); final Stage dialog = new Stage(StageStyle.UTILITY);
dialog.setTitle(Inter.getLocText("FR-Designer-BBSLogin_Switch-Account"));
dialog.setX(Toolkit.getDefaultToolkit().getScreenSize().getWidth()/2 - DEFAULT_CONFIRM_WIDTH / 2 + DEFAULT_OFFEST); dialog.setX(Toolkit.getDefaultToolkit().getScreenSize().getWidth()/2 - DEFAULT_CONFIRM_WIDTH / 2 + DEFAULT_OFFEST);
dialog.setY(Toolkit.getDefaultToolkit().getScreenSize().getHeight()/2 + DEFAULT_OFFEST); dialog.setY(Toolkit.getDefaultToolkit().getScreenSize().getHeight()/2 + DEFAULT_OFFEST);
dialog.setHeight(DEFAULT_CONFIRM_HEIGHT); dialog.setHeight(DEFAULT_CONFIRM_HEIGHT);
@ -162,7 +161,7 @@ public class QQLoginWebPane extends JFXPanel {
new Scene( new Scene(
HBoxBuilder.create().styleClass("modal-dialog").children( HBoxBuilder.create().styleClass("modal-dialog").children(
LabelBuilder.create().text(msg).build(), LabelBuilder.create().text(msg).build(),
ButtonBuilder.create().text(Inter.getLocText("")).defaultButton(true).onAction(new EventHandler<ActionEvent>() { ButtonBuilder.create().text(Inter.getLocText("FR-Designer-BBSLogin_Switch-Account")).defaultButton(true).onAction(new EventHandler<ActionEvent>() {
@Override public void handle(ActionEvent actionEvent) { @Override public void handle(ActionEvent actionEvent) {
// take action and close the dialog. // take action and close the dialog.
confirmationResult.set(true); confirmationResult.set(true);

3
designer_base/src/com/fr/design/extra/ucenter/Client.java

@ -18,7 +18,7 @@ import java.util.Map;
*/ */
public class Client extends PHPFunctions{ public class Client extends PHPFunctions{
public static String UC_IP = "211.149.195.54"; public static String UC_IP = "";
public static String UC_API = ""; public static String UC_API = "";
public static String UC_CONNECT = ""; public static String UC_CONNECT = "";
public static String UC_KEY = "Rc85U37411p4zdvcedm8D4t4D3l9Sa42H0kd98Gbd82aA99a61S2Z5LbQ9u430M0"; public static String UC_KEY = "Rc85U37411p4zdvcedm8D4t4D3l9Sa42H0kd98Gbd82aA99a61S2Z5LbQ9u430M0";
@ -87,6 +87,7 @@ public class Client extends PHPFunctions{
} }
String $postdata = uc_api_requestdata(module, action, str.toString(), ""); String $postdata = uc_api_requestdata(module, action, str.toString(), "");
UC_API = SiteCenter.getInstance().acquireUrlByKind("bbs.ucapi"); UC_API = SiteCenter.getInstance().acquireUrlByKind("bbs.ucapi");
UC_IP = SiteCenter.getInstance().acquireUrlByKind("bbs.ip");
return uc_fopen2(UC_API + "/index.php", 500000, $postdata, "", true, UC_IP, 20, true); return uc_fopen2(UC_API + "/index.php", 500000, $postdata, "", true, UC_IP, 20, true);
} }

Loading…
Cancel
Save