|
@@ -302,7 +302,6 @@ function loadConfig($cfgPath){
|
|
|
return $config;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
//多线程下载文件
|
|
|
function downloadToDir($toolDir,$downClient,$ossHost,$repoName,$fileName,$targetDir){
|
|
|
if (!file_exists($targetDir)){
|
|
@@ -313,7 +312,7 @@ function downloadToDir($toolDir,$downClient,$ossHost,$repoName,$fileName,$target
|
|
|
if( file_exists($targetPath) ) {
|
|
|
return $targetPath;
|
|
|
}
|
|
|
- $remoteUrl = pathJoin($ossHost,$repoName,$fileName);
|
|
|
+ $remoteUrl = pathJoin($ossHost,$repoName,urlencode($fileName));
|
|
|
if($downClient == 'gopeed'){
|
|
|
$gopeed = getGoPeedPath($toolDir);
|
|
|
$cmd = $gopeed." -D=" . $targetDir . " " . $remoteUrl;
|