mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2026-02-13 02:30:26 +00:00
修了个body包数据为空的bug,虽然不知道发生了啥,但它确实是被修好了
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user