mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-23 18:36:37 +08:00
fix: 修复自定义聊天bug
(cherry picked from commit 8d41c17ccf19cb29100dbe506d3d42a6be822ff9)
This commit is contained in:
parent
d6359ec4ff
commit
40baa636e4
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user