fix:url
This commit is contained in:
parent
90bbfd3a20
commit
aa63dec27e
@ -1444,8 +1444,8 @@ func ImportPdfBatch(ctx *gin.Context) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
// 下载 PDF
|
// 下载 PDF(保存到 runtime 目录,上传后 URL 不包含 pdf_import 路径)
|
||||||
fullPath, err := utils.SaveUrlFileDisk(pdfUrl, "runtime/pdf_import/", 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