Skip to content

Commit

Permalink
chore:替换图片API地址
Browse files Browse the repository at this point in the history
感谢大自然的馈赠
  • Loading branch information
vatebur committed Dec 4, 2024
1 parent c35fc54 commit 02af754
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugin/aifalse/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import (
)

const (
backgroundURL = "https://iw233.cn/api.php?sort=mp"
backgroundURL = "https://pic.re/image"
referer = "https://weibo.com/"
)

Expand Down
5 changes: 2 additions & 3 deletions plugin/score/sign_in.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ package score
import (
"encoding/base64"
"errors"
log "github.com/sirupsen/logrus"
"io"
"math"
"math/rand"
Expand All @@ -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
Expand Down Expand Up @@ -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发送
Expand Down

0 comments on commit 02af754

Please sign in to comment.