Browse Source

Merge pull request #584 in BA/design from ~LEE/design_master:dev to dev

* commit 'e6bc21d46b0e38501341f0ddd40642ea866b62b4':
  1
  REPORT-1147 脚本更新问题
master
superman 8 years ago
parent
commit
cef905b84d
  1. 5
      designer_base/src/com/fr/design/extra/PluginHelper.java

5
designer_base/src/com/fr/design/extra/PluginHelper.java

@ -48,9 +48,6 @@ public class PluginHelper {
* @param p 下载百分比处理 * @param p 下载百分比处理
*/ */
public static void downloadPluginFile(String id, String username, String password, Process<Double> p) throws Exception { public static void downloadPluginFile(String id, String username, String password, Process<Double> p) throws Exception {
if (!PluginHelper.invalidUser(id, username, password)) {
return;
}
HttpClient httpClient = new HttpClient(getDownloadPath(id, username, password)); HttpClient httpClient = new HttpClient(getDownloadPath(id, username, password));
if (httpClient.getResponseCode() == HttpURLConnection.HTTP_OK) { if (httpClient.getResponseCode() == HttpURLConnection.HTTP_OK) {
int totalSize = httpClient.getContentLength(); int totalSize = httpClient.getContentLength();
@ -353,4 +350,4 @@ public class PluginHelper {
} }
private static final int TIME_OUT = 5000; private static final int TIME_OUT = 5000;
} }

Loading…
Cancel
Save