shenshihai 2 ani în urmă
părinte
comite
52c89da934
1 a modificat fișierele cu 1 adăugiri și 2 ștergeri
  1. 1 2
      src/Utility.php

+ 1 - 2
src/Utility.php

@@ -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;