From b069056bdad4bf1b83684d98a3df1255315c5a9a Mon Sep 17 00:00:00 2001 From: "1808837298@qq.com" <1808837298@qq.com> Date: Sun, 16 Jun 2024 13:38:36 +0800 Subject: [PATCH] fix panic --- model/channel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/channel.go b/model/channel.go index 7c46f59..f1ac421 100644 --- a/model/channel.go +++ b/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 {