fix:链接名字
This commit is contained in:
parent
bbfa8d3c13
commit
ef823bcec3
@ -19,11 +19,11 @@ import (
|
|||||||
"fonchain-fiee/pkg/utils/stime"
|
"fonchain-fiee/pkg/utils/stime"
|
||||||
"net/url"
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
"unicode/utf8"
|
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
"unicode/utf8"
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
|
|
||||||
@ -1445,7 +1445,7 @@ func ImportPdfBatch(ctx *gin.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 下载 PDF(保存到 runtime 目录,上传后 URL 不包含 pdf_import 路径)
|
// 下载 PDF(保存到 runtime 目录,上传后 URL 不包含 pdf_import 路径)
|
||||||
fullPath, err := utils.SaveUrlFileDisk(pdfUrl, "runtime/", newFileName+".pdf")
|
fullPath, err := utils.SaveUrlFileDisk(pdfUrl, "runtime", newFileName+".pdf")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
zap.L().Error("下载PDF失败", zap.String("pdfUrl", pdfUrl), zap.Error(err))
|
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()))
|
excelData.SetCellValue("Sheet1", fmt.Sprintf("D%d", line+1), fmt.Sprintf("下载PDF失败: %s", err.Error()))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user