diff --git a/pkg/service/cast/report.go b/pkg/service/cast/report.go index 3b339b73..f67b66fa 100644 --- a/pkg/service/cast/report.go +++ b/pkg/service/cast/report.go @@ -19,11 +19,11 @@ import ( "fonchain-fiee/pkg/utils/stime" "net/url" "os" - "unicode/utf8" "path/filepath" "strconv" "strings" "time" + "unicode/utf8" "github.com/google/uuid" @@ -1445,7 +1445,7 @@ func ImportPdfBatch(ctx *gin.Context) { } // 下载 PDF(保存到 runtime 目录,上传后 URL 不包含 pdf_import 路径) - fullPath, err := utils.SaveUrlFileDisk(pdfUrl, "runtime/", newFileName+".pdf") + fullPath, err := utils.SaveUrlFileDisk(pdfUrl, "runtime", newFileName+".pdf") if err != nil { zap.L().Error("下载PDF失败", zap.String("pdfUrl", pdfUrl), zap.Error(err)) excelData.SetCellValue("Sheet1", fmt.Sprintf("D%d", line+1), fmt.Sprintf("下载PDF失败: %s", err.Error()))