refactor: 重命名Message.RawMsg

This commit is contained in:
lixiangwuxian
2024-10-13 14:40:32 +08:00
parent eed624194a
commit 1495ac516b
11 changed files with 61 additions and 38 deletions

View File

@@ -12,10 +12,9 @@ func GetSSPicture(qqId string) (outputImgName string) {
return ""
}
url := fmt.Sprintf("https://scoresaber.com/u/%s", ssId)
// url := fmt.Sprintf("https://scoresaber.com/rankings")
outputImgPath := fmt.Sprintf("./tmp/scoresaber_%s.png", ssId)
outputImgName = fmt.Sprintf("scoresaber_%s.png", ssId)
if err := util.ScreenshotURL(url, outputImgPath, 1620, 3080, 60, 0, 300, 300, "ranking songs"); err != nil {
if err := util.ScreenshotURL(url, outputImgPath, 1420, 2080, 50, 400, 150, 150, ""); err != nil {
fmt.Println(err)
return ""
}