mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-18 20:50:12 +08:00
parent
c35fc543d3
commit
38eae9375d
@ -40,7 +40,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
backgroundURL = "https://iw233.cn/api.php?sort=mp"
|
||||
backgroundURL = "https://pic.re/image"
|
||||
referer = "https://weibo.com/"
|
||||
)
|
||||
|
||||
|
||||
@ -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发送
|
||||
|
||||
Loading…
Reference in New Issue
Block a user