This commit is contained in:
2025-12-04 10:35:11 +08:00
parent b0e8974d6c
commit 68def7e08b
7 changed files with 184 additions and 154 deletions

View File

@@ -68,9 +68,7 @@ func (tp *TableParser) ParseAndRenderTable(ctx context.Context, pdf *gofpdf.Fpdf
// 渲染表格到PDF
if err := tp.databaseRenderer.RenderTable(pdf, tableData); err != nil {
tp.logger.Error("渲染表格失败",
zap.String("field_type", fieldType),
zap.Error(err))
// 错误已返回,不记录日志
return fmt.Errorf("渲染表格失败: %w", err)
}