diff --git a/service/beatleader/bind_bl.go b/service/beatleader/bind_bl.go index 19bd78a..4f0680a 100644 --- a/service/beatleader/bind_bl.go +++ b/service/beatleader/bind_bl.go @@ -332,11 +332,14 @@ func (bl *blQuery) GetRecentScores(count int, qqId string) ([]RecordDataLite, er if err != nil { return nil, err } - var scores []ScoreData - err = json.Unmarshal(body, &scores) + var response struct { + Data []ScoreData `json:"data"` + } + err = json.Unmarshal(body, &response) if err != nil { return nil, err } + scores := response.Data records := make([]RecordDataLite, 0) for _, score := range scores { dataLite := RecordDataLite{