From b424020e300711150edec401ba245283b4607f4e Mon Sep 17 00:00:00 2001 From: luhaoling <2198702716@qq.com> Date: Tue, 16 Jan 2024 18:25:48 +0800 Subject: [PATCH] fix: fix the map --- internal/api/msg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/msg.go b/internal/api/msg.go index 68f89fde2..88f25a425 100644 --- a/internal/api/msg.go +++ b/internal/api/msg.go @@ -460,7 +460,7 @@ func (m *MessageApi) CallbackExample(c *gin.Context) { return } - content := map[string]any{} + content := make(map[string]any, 1) content["content"] = req.Content input := &apistruct.SendMsgReq{ RecvID: req.SendID,