fix: 修正生成 B50 图片时字体路径,去掉前导斜杠以确保正确加载字体文件
This commit is contained in:
parent
ce60e61aa1
commit
784c0eea63
@ -696,7 +696,7 @@ func GenBs50(ssID string, outputPath string) error {
|
|||||||
B50Songs: songs,
|
B50Songs: songs,
|
||||||
Country: ssUser.Country,
|
Country: ssUser.Country,
|
||||||
}
|
}
|
||||||
if err = generateB50Image(player, outputPath, "/resource/font.ttf"); err != nil {
|
if err = generateB50Image(player, outputPath, "resource/font.ttf"); err != nil {
|
||||||
return fmt.Errorf("生成 B50 图片失败: %v", err)
|
return fmt.Errorf("生成 B50 图片失败: %v", err)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user