diff --git a/example/dump/main.go b/example/dump/main.go index 617afb7..334ac9a 100644 --- a/example/dump/main.go +++ b/example/dump/main.go @@ -9,7 +9,7 @@ import ( "github.com/tidwall/gjson" ) -const roomId = "8792912" +const roomId = 8792912 var dumps = []string{"GUARD_BUY", "USER_TOAST_MSG"} diff --git a/packet/enter.go b/packet/enter.go index b7387cc..42332a6 100644 --- a/packet/enter.go +++ b/packet/enter.go @@ -23,7 +23,7 @@ func NewEnterPacket(uid int, buvid string, roomID int, key string) []byte { Buvid: buvid, RoomID: roomID, ProtoVer: 3, - Platform: "web", + Platform: "danmuji", Type: 2, Key: key, }