fix:链接名字
This commit is contained in:
parent
aa63dec27e
commit
2247cce068
@ -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()))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user