From 2247cce06873283abe6145617ebb1ed78c9bb963 Mon Sep 17 00:00:00 2001 From: cjy Date: Mon, 9 Mar 2026 09:45:10 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E9=93=BE=E6=8E=A5=E5=90=8D?= =?UTF-8?q?=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/service/cast/report.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()))