1808837298@qq.com hai 1 ano
pai
achega
b069056bda
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      model/channel.go

+ 1 - 1
model/channel.go

@@ -34,7 +34,7 @@ type Channel struct {
 }
 
 func (channel *Channel) GetOtherInfo() map[string]interface{} {
-	var otherInfo map[string]interface{}
+	otherInfo := make(map[string]interface{})
 	if channel.OtherInfo != "" {
 		err := json.Unmarshal([]byte(channel.OtherInfo), &otherInfo)
 		if err != nil {