From 0cd719303f4448b6edbe4af54ecac81559bf0415 Mon Sep 17 00:00:00 2001 From: Fangjie Hu Date: Thu, 1 Sep 2016 17:43:01 +0800 Subject: [PATCH] update --- .../design/extra/pre4plugin/PhantomJs4VanChartPlugin.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/designer_base/src/com/fr/design/extra/pre4plugin/PhantomJs4VanChartPlugin.java b/designer_base/src/com/fr/design/extra/pre4plugin/PhantomJs4VanChartPlugin.java index d613b6cc84..71d2b7238c 100644 --- a/designer_base/src/com/fr/design/extra/pre4plugin/PhantomJs4VanChartPlugin.java +++ b/designer_base/src/com/fr/design/extra/pre4plugin/PhantomJs4VanChartPlugin.java @@ -31,7 +31,7 @@ import javax.swing.*; public class PhantomJs4VanChartPlugin implements ActionListener, PreEnv4Plugin { - private static final String PHANTOM_PATH = SiteCenter.getInstance().acquireUrlByKind("plugin.phantomjs"); + private static final String ID = "plugin.phantomjs"; //链接服务器的客户端 private HttpClient httpClient; //已读文件字节数 @@ -119,7 +119,7 @@ public class PhantomJs4VanChartPlugin implements ActionListener, PreEnv4Plugin { } private void connectToServer(){ - httpClient = new HttpClient(PHANTOM_PATH); + httpClient = new HttpClient(SiteCenter.getInstance().acquireUrlByKind(ID)); if (httpClient.getResponseCode() == HttpURLConnection.HTTP_OK) { totalSize = httpClient.getContentLength(); }else { @@ -128,7 +128,7 @@ public class PhantomJs4VanChartPlugin implements ActionListener, PreEnv4Plugin { } private int getFileLength(){ - httpClient = new HttpClient(PHANTOM_PATH); + httpClient = new HttpClient(SiteCenter.getInstance().acquireUrlByKind(ID)); if (httpClient.getResponseCode() == HttpURLConnection.HTTP_OK) { return httpClient.getContentLength(); }