From 7a9d957377cc91ee1bddff058f8381f0d4e2aec6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=2EYing-=E5=BA=94=E5=BF=97=E6=B5=A9?= Date: Thu, 25 May 2023 11:26:02 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-96107=208.0=E5=92=8C11.0.2=E8=83=BD?= =?UTF-8?q?=E5=8F=8C=E5=BC=80=EF=BC=8C8.0=E5=92=8C11.0.14=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E5=8F=8C=E5=BC=80--=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/fr/design/utils/DesignUtils.java | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/utils/DesignUtils.java b/designer-base/src/main/java/com/fr/design/utils/DesignUtils.java index b91ca4d8e1..bfba512a20 100644 --- a/designer-base/src/main/java/com/fr/design/utils/DesignUtils.java +++ b/designer-base/src/main/java/com/fr/design/utils/DesignUtils.java @@ -69,9 +69,6 @@ public class DesignUtils { private static Integer port; - private static final String TURE = "true"; - - private static final String DEBUG = "debug"; private static boolean started = false; @@ -84,11 +81,7 @@ public class DesignUtils { public synchronized static int getPort() { if (port == null) { - if (ComparatorUtils.equals(TURE, System.getProperty(DEBUG))) { - setPort(DesignerPort.getInstance().getDebugMessagePort()); - } else { - setPort(DesignerPort.getInstance().getMessagePort()); - } + setPort(DesignerPort.getInstance().getMessagePort()); } return port; } @@ -230,7 +223,7 @@ public class DesignUtils { @Override public void run() { DesignerStartupContext context = DesignerStartupContext.getInstance(); - + // 如果在启动页展示中 if (DesignerStartupUtil.openTemplateIfOnWaiting(f)) { return; @@ -240,7 +233,7 @@ public class DesignUtils { // 之前就有这样的问题 return; } - + // 打开模板 DesignerContext.getDesignerFrame().openTemplate(new FileFILE(f)); } @@ -493,6 +486,7 @@ public class DesignUtils { /** * 获取设计器可用字体 + * * @return */ public static String[] getAvailableFontFamilyNames4Report() {