Browse Source

REPORT-1147 脚本更新问题

最初是为了解决,插件更新和安装下会出现plugin的数组读取两遍的问题,所以在哪个地方加个强制的判断,当时的解决方案是可为两个,还有一个是在脚本
中加入sort处理。后来vito那边找到出现问题的核心点,在于pane部分加载两次,导致脚本数组加载两次,那这边的就去掉这边的判断,因为会导致脚
本更新问题。
master
PanLi320 8 years ago
parent
commit
9d239159e9
  1. 4
      designer_base/src/com/fr/design/extra/PluginHelper.java

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

@ -48,9 +48,11 @@ 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)) { if (!PluginHelper.invalidUser(id, username, password)) {
return; 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 +355,4 @@ public class PluginHelper {
} }
private static final int TIME_OUT = 5000; private static final int TIME_OUT = 5000;
} }

Loading…
Cancel
Save