mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 05:30:07 +08:00
parent
c35fc543d3
commit
38eae9375d
@ -40,7 +40,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
backgroundURL = "https://iw233.cn/api.php?sort=mp"
|
backgroundURL = "https://pic.re/image"
|
||||||
referer = "https://weibo.com/"
|
referer = "https://weibo.com/"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,6 @@ package score
|
|||||||
import (
|
import (
|
||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
"errors"
|
"errors"
|
||||||
log "github.com/sirupsen/logrus"
|
|
||||||
"io"
|
"io"
|
||||||
"math"
|
"math"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
@ -24,13 +23,14 @@ import (
|
|||||||
"github.com/FloatTech/zbputils/ctxext"
|
"github.com/FloatTech/zbputils/ctxext"
|
||||||
"github.com/FloatTech/zbputils/img/text"
|
"github.com/FloatTech/zbputils/img/text"
|
||||||
"github.com/golang/freetype"
|
"github.com/golang/freetype"
|
||||||
|
log "github.com/sirupsen/logrus"
|
||||||
"github.com/wcharczuk/go-chart/v2"
|
"github.com/wcharczuk/go-chart/v2"
|
||||||
zero "github.com/wdvxdr1123/ZeroBot"
|
zero "github.com/wdvxdr1123/ZeroBot"
|
||||||
"github.com/wdvxdr1123/ZeroBot/message"
|
"github.com/wdvxdr1123/ZeroBot/message"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
backgroundURL = "https://iw233.cn/api.php?sort=pc"
|
backgroundURL = "https://pic.re/image"
|
||||||
referer = "https://weibo.com/"
|
referer = "https://weibo.com/"
|
||||||
signinMax = 1
|
signinMax = 1
|
||||||
// SCOREMAX 分数上限定为1200
|
// SCOREMAX 分数上限定为1200
|
||||||
@ -342,7 +342,6 @@ func initPic(picFile string, uid int64) (avatar []byte, err error) {
|
|||||||
// 获取网络图片失败,使用本地已有的图片
|
// 获取网络图片失败,使用本地已有的图片
|
||||||
log.Error("[score:get online img error]:", err)
|
log.Error("[score:get online img error]:", err)
|
||||||
return avatar, copyImage(picFile)
|
return avatar, copyImage(picFile)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 使用"file:"发送图片失败后,改用base64发送
|
// 使用"file:"发送图片失败后,改用base64发送
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user