Skip to content

Commit 38eae93

Browse files
authored
chore:替换图片API地址 (#1077)
感谢大自然的馈赠
1 parent c35fc54 commit 38eae93

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

plugin/aifalse/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import (
4040
)
4141

4242
const (
43-
backgroundURL = "https://iw233.cn/api.php?sort=mp"
43+
backgroundURL = "https://pic.re/image"
4444
referer = "https://weibo.com/"
4545
)
4646

plugin/score/sign_in.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ package score
44
import (
55
"encoding/base64"
66
"errors"
7-
log "github.com/sirupsen/logrus"
87
"io"
98
"math"
109
"math/rand"
@@ -24,13 +23,14 @@ import (
2423
"github.com/FloatTech/zbputils/ctxext"
2524
"github.com/FloatTech/zbputils/img/text"
2625
"github.com/golang/freetype"
26+
log "github.com/sirupsen/logrus"
2727
"github.com/wcharczuk/go-chart/v2"
2828
zero "github.com/wdvxdr1123/ZeroBot"
2929
"github.com/wdvxdr1123/ZeroBot/message"
3030
)
3131

3232
const (
33-
backgroundURL = "https://iw233.cn/api.php?sort=pc"
33+
backgroundURL = "https://pic.re/image"
3434
referer = "https://weibo.com/"
3535
signinMax = 1
3636
// SCOREMAX 分数上限定为1200
@@ -342,7 +342,6 @@ func initPic(picFile string, uid int64) (avatar []byte, err error) {
342342
// 获取网络图片失败,使用本地已有的图片
343343
log.Error("[score:get online img error]:", err)
344344
return avatar, copyImage(picFile)
345-
346345
}
347346

348347
// 使用"file:"发送图片失败后,改用base64发送

0 commit comments

Comments
 (0)