From 4b61a3103d7d7a73265de6b00c8a11b063433cd8 Mon Sep 17 00:00:00 2001 From: luhaoling <2198702716@qq.com> Date: Tue, 16 Jan 2024 18:56:33 +0800 Subject: [PATCH] fix: fix the errlr --- internal/api/msg.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/api/msg.go b/internal/api/msg.go index 81564f138..9c752720e 100644 --- a/internal/api/msg.go +++ b/internal/api/msg.go @@ -461,7 +461,9 @@ func (m *MessageApi) CallbackExample(c *gin.Context) { } content := make(map[string]any, 1) - content[""] = req.Content + str := "" + json.Unmarshal([]byte(req.Content), &str) + content["content"] = str input := &apistruct.SendMsgReq{ RecvID: req.SendID, SendMsg: apistruct.SendMsg{