fix panic

This commit is contained in:
1808837298@qq.com 2024-06-16 13:38:36 +08:00
parent 954fa879dc
commit b069056bda

View File

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