chore:替换图片API地址 (#1077)

感谢大自然的馈赠
This commit is contained in:
vatebur 2024-12-05 13:48:49 +08:00 committed by GitHub
parent c35fc543d3
commit 38eae9375d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions

View File

@ -40,7 +40,7 @@ import (
)
const (
backgroundURL = "https://iw233.cn/api.php?sort=mp"
backgroundURL = "https://pic.re/image"
referer = "https://weibo.com/"
)

View File

@ -4,7 +4,6 @@ package score
import (
"encoding/base64"
"errors"
log "github.com/sirupsen/logrus"
"io"
"math"
"math/rand"
@ -24,13 +23,14 @@ import (
"github.com/FloatTech/zbputils/ctxext"
"github.com/FloatTech/zbputils/img/text"
"github.com/golang/freetype"
log "github.com/sirupsen/logrus"
"github.com/wcharczuk/go-chart/v2"
zero "github.com/wdvxdr1123/ZeroBot"
"github.com/wdvxdr1123/ZeroBot/message"
)
const (
backgroundURL = "https://iw233.cn/api.php?sort=pc"
backgroundURL = "https://pic.re/image"
referer = "https://weibo.com/"
signinMax = 1
// SCOREMAX 分数上限定为1200
@ -342,7 +342,6 @@ func initPic(picFile string, uid int64) (avatar []byte, err error) {
// 获取网络图片失败,使用本地已有的图片
log.Error("[score:get online img error]:", err)
return avatar, copyImage(picFile)
}
// 使用"file:"发送图片失败后改用base64发送