fix: 修复自定义聊天bug

(cherry picked from commit 8d41c17ccf19cb29100dbe506d3d42a6be822ff9)
This commit is contained in:
1808837298@qq.com 2024-10-13 00:14:53 +08:00
parent d6359ec4ff
commit 40baa636e4

View File

@ -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)
}