PanLi320 8 years ago
parent
commit
e02e4d2613
  1. 5
      designer_base/src/com/fr/design/extra/PluginHelper.java

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

@ -48,7 +48,10 @@ 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 (StringUtils.isEmpty(id) || StringUtils.isEmpty(username) || StringUtils.isEmpty(password)) { if (StringUtils.isEmpty(id)) {
return;
}
if (StringUtils.isEmpty(username) || StringUtils.isEmpty(password)) {
return; return;
} }
HttpClient httpClient = new HttpClient(getDownloadPath(id, username, password)); HttpClient httpClient = new HttpClient(getDownloadPath(id, username, password));

Loading…
Cancel
Save