声音部分的代码仍需调试,现在panic

This commit is contained in:
TonyChyi
2022-09-27 14:36:25 +08:00
parent 7ef721afb7
commit edbe406f5b
6 changed files with 104 additions and 116 deletions

View File

@@ -29,7 +29,7 @@ type CommandLine struct {
}
func ParseEvent(b []byte) (*Event, error) {
var event *Event
event := &Event{}
if err := json.Unmarshal(b, event); err != nil {
return nil, err
}