This commit is contained in:
2025-12-03 16:53:31 +08:00
parent 3f5a126bfa
commit 1f06f21faf
4 changed files with 114 additions and 37 deletions

View File

@@ -70,12 +70,10 @@ func (g *PDFGeneratorRefactored) findLogo() {
for _, logoPath := range logoPaths {
if _, err := os.Stat(logoPath); err == nil {
absPath, err := filepath.Abs(logoPath)
if err == nil {
g.logoPath = absPath
g.logger.Info("找到logo文件", zap.String("logo_path", absPath))
return
}
// 直接使用相对路径,不转换为绝对路径
g.logoPath = logoPath
g.logger.Info("找到logo文件", zap.String("logo_path", logoPath))
return
}
}