feat: 添加查bl图命令以获取最新分数截图,并优化头像处理逻辑,使用新的图片缩放方法

This commit is contained in:
lixiangwuxian
2025-05-10 14:33:53 +08:00
parent aa9994de17
commit 74b92f675b
7 changed files with 217 additions and 14 deletions

View File

@@ -270,7 +270,7 @@ func getMyRecentScore(msg model.Message) (reply *model.Reply) {
log.Printf("下载图片失败: %v", err)
return
}
newPath, err := util.ResizeImageByMaxHeight(filePath, 20)
newPath, err := util.ResizeImageByMaxHeight2File(filePath, 20)
if err != nil {
log.Printf("缩放图片失败: %v", err)
}