From 40baa636e448ac17e2d491eaf733f490ac2d22f4 Mon Sep 17 00:00:00 2001 From: "1808837298@qq.com" <1808837298@qq.com> Date: Sun, 13 Oct 2024 00:14:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E8=81=8A=E5=A4=A9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 8d41c17ccf19cb29100dbe506d3d42a6be822ff9) --- constant/chat.go | 1 + 1 file changed, 1 insertion(+) diff --git a/constant/chat.go b/constant/chat.go index 336a5cd..3eecb9d 100644 --- a/constant/chat.go +++ b/constant/chat.go @@ -21,6 +21,7 @@ var Chats = []map[string]string{ } func UpdateChatsByJsonString(jsonString string) error { + Chats = make([]map[string]string, 0) return json.Unmarshal([]byte(jsonString), &Chats) }