修了个body包数据为空的bug,虽然不知道发生了啥,但它确实是被修好了

This commit is contained in:
Suika99
2021-07-02 19:06:01 +08:00
parent 0ec54015e9
commit f8ccb467ba
5 changed files with 108 additions and 56 deletions

View File

@@ -39,11 +39,11 @@ func FansDaily(groupID int64) {
func fansData(groupID int64) {
zero.RangeBot(func(id int64, ctx *zero.Ctx) bool {
var (
diana = fensiapi("672328094")
ava = fensiapi("672346917")
eileen = fensiapi("672342685")
bella = fensiapi("672353429")
carol = fensiapi("351609538")
diana = fansapi("672328094")
ava = fansapi("672346917")
eileen = fansapi("672342685")
bella = fansapi("672353429")
carol = fansapi("351609538")
)
ctx.SendGroupMessage(
groupID,
@@ -104,7 +104,7 @@ func fansData(groupID int64) {
}
// 请求api
func fensiapi(uid string) *follower {
func fansapi(uid string) *follower {
url := "https://api.vtbs.moe/v1/detail/" + uid
resp, err := http.Get(url)
@@ -117,4 +117,4 @@ func fensiapi(uid string) *follower {
panic(err)
}
return result
}
}