fix: 修复download path错误

This commit is contained in:
余泓铮
2025-02-20 10:49:23 +08:00
parent 4c4b142a9d
commit d95251ae5d
2 changed files with 5 additions and 2 deletions

View File

@@ -302,7 +302,7 @@ func DownloadFileByUrl(fileUrl string) (filePath string, err error) {
}
// Create the output file.
outFile, err := os.Create(fileName)
outFile, err := os.Create(filePath)
if err != nil {
return "", err
}
@@ -314,6 +314,6 @@ func DownloadFileByUrl(fileUrl string) (filePath string, err error) {
return "", err
}
fmt.Printf("File downloaded successfully: %s\n", fileName)
fmt.Printf("File downloaded successfully: %s\n", filePath)
return filePath, nil
}