This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user