From dbe1c18bd9d47c4c14590fbbebab7609f35cee58 Mon Sep 17 00:00:00 2001 From: MoYoez Date: Sun, 12 May 2024 15:38:01 +0800 Subject: [PATCH] fix: fortune name error --- functions/daily/fortune.go | 2 +- functions/mai/alias.go | 2 +- functions/mai/lxns_handler.go | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/functions/daily/fortune.go b/functions/daily/fortune.go index 3b5ae44..3239b45 100644 --- a/functions/daily/fortune.go +++ b/functions/daily/fortune.go @@ -28,7 +28,7 @@ import ( ) type card struct { - Name string `json:"setname"` + Name string `json:"name"` Info struct { Description string `json:"description"` ReverseDescription string `json:"reverseDescription"` diff --git a/functions/mai/alias.go b/functions/mai/alias.go index e2c4f4b..8ca47b8 100644 --- a/functions/mai/alias.go +++ b/functions/mai/alias.go @@ -46,7 +46,7 @@ func QueryReferSong(Alias string, isLxnet bool) (status bool, id []int, needAcc } else { return true, onloadList[0], false, nil } - // query length is 2,it means this maybe same setname but diff id ==> (E.G: Oshama Scramble!) + // query length is 2,it means this maybe same name but diff id ==> (E.G: Oshama Scramble!) case len(onloadList) == 2: for _, listHere := range onloadList[0] { for _, listAliasTwo := range onloadList[1] { diff --git a/functions/mai/lxns_handler.go b/functions/mai/lxns_handler.go index 00be9fa..95c4bca 100644 --- a/functions/mai/lxns_handler.go +++ b/functions/mai/lxns_handler.go @@ -26,12 +26,12 @@ type LxnsMaimaiRequestFromQQ struct { Code int `json:"code"` Message string `json:"message"` Data struct { - Name string `json:"setname"` + Name string `json:"name"` Rating int `json:"rating"` FriendCode int64 `json:"friend_code"` Trophy struct { Id int `json:"id"` - Name string `json:"setname"` + Name string `json:"name"` Color string `json:"color"` } `json:"trophy"` CourseRank int `json:"course_rank"` @@ -40,11 +40,11 @@ type LxnsMaimaiRequestFromQQ struct { IconUrl string `json:"icon_url"` NamePlate struct { Id int `json:"id"` - Name string `json:"setname"` + Name string `json:"name"` } `json:"name_plate"` Frame struct { Id int `json:"id"` - Name string `json:"setname"` + Name string `json:"name"` } `json:"frame"` UploadTime time.Time `json:"upload_time"` } `json:"data"` @@ -150,7 +150,7 @@ type LxnsMaimaiRequestUserReferBestSongIndex struct { "success": true, "code": 200, "data": { - "setname": "StarKooi", + "name": "StarKooi", "rating": 11616, "friend_code": 00000000000, "trophy": {