|
@@ -29,11 +29,12 @@ public class DownloadUtil {
|
|
|
if(FileUtil.size(new File(path)) == 0 ){
|
|
|
while (index<=50){
|
|
|
index++;
|
|
|
- ThreadUtil.safeSleep(500);
|
|
|
DownloadUtil.downFile(url,path);
|
|
|
if (FileUtil.size(new File(path))>0){
|
|
|
return;
|
|
|
}
|
|
|
+ ThreadUtil.safeSleep(500);
|
|
|
+
|
|
|
// HttpUtil.downloadFileFromUrl(url,path);
|
|
|
}
|
|
|
}
|