mirror of
https://github.com/AynaLivePlayer/blivedm-go.git
synced 2025-12-06 11:22:50 +08:00
✨ *breaking change* 重命名了Medal中的up为UpName,添加了UpRoomId、UpUid
This commit is contained in:
@@ -77,9 +77,11 @@ func (d *Danmaku) Parse(data []byte) {
|
||||
Uid: int(info.Get("2.0").Int()),
|
||||
Uname: info.Get("2.1").String(),
|
||||
Medal: &Medal{
|
||||
Name: info.Get("3.1").String(),
|
||||
Level: int(info.Get("3.0").Int()),
|
||||
Up: info.Get("3.2").String(),
|
||||
Name: info.Get("3.1").String(),
|
||||
Level: int(info.Get("3.0").Int()),
|
||||
UpUid: int(info.Get("3.12").Int()),
|
||||
UpRoomId: int(info.Get("3.3").Int()),
|
||||
UpName: info.Get("3.2").String(),
|
||||
},
|
||||
}
|
||||
d.Extra = ext
|
||||
|
||||
@@ -7,7 +7,9 @@ type User struct {
|
||||
}
|
||||
|
||||
type Medal struct {
|
||||
Name string
|
||||
Level int
|
||||
Up string
|
||||
Name string
|
||||
Level int
|
||||
UpRoomId int
|
||||
UpUid int
|
||||
UpName string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user