mirror of
https://github.com/AynaLivePlayer/blivedm-go.git
synced 2025-12-06 19:32:49 +08:00
🎨 rename UnmarshalString
This commit is contained in:
@@ -73,7 +73,7 @@ type SuperChat struct {
|
||||
func (s *SuperChat) Parse(data []byte) {
|
||||
sb := utils.BytesToString(data)
|
||||
sd := gjson.Get(sb, "data").String()
|
||||
err := utils.UnmarshalString(sd, s)
|
||||
err := utils.UnmarshalStr(sd, s)
|
||||
if err != nil {
|
||||
log.Error("parse superchat failed")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user