Skip to content

Commit

Permalink
fix: fortune name error
Browse files Browse the repository at this point in the history
  • Loading branch information
MoYoez committed May 12, 2024
1 parent c99df22 commit dbe1c18
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion functions/daily/fortune.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion functions/mai/alias.go
Original file line number Diff line number Diff line change
Expand Up @@ -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] {
Expand Down
10 changes: 5 additions & 5 deletions functions/mai/lxns_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -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"`
Expand Down Expand Up @@ -150,7 +150,7 @@ type LxnsMaimaiRequestUserReferBestSongIndex struct {
"success": true,
"code": 200,
"data": {
"setname": "StarKooi",
"name": "StarKooi",
"rating": 11616,
"friend_code": 00000000000,
"trophy": {
Expand Down

0 comments on commit dbe1c18

Please # to comment.