From d6672b8d73cc78280cb3564bac09d1260bd047ce Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Fri, 25 Aug 2023 17:55:41 +0800 Subject: [PATCH] fix: text --- 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 8e28d6c72..20e970aa1 100644 --- a/internal/api/msg.go +++ b/internal/api/msg.go @@ -172,7 +172,7 @@ func (m *MessageApi) getSendMsgReq(c *gin.Context, req apistruct.SendMsg) (sendM log.ZDebug(c, "getSendMsgReq", "req", req.Content) switch req.ContentType { case constant.Text: - text, ok := req.Content["text"].(string) + text, ok := req.Content["content"].(string) if !ok { return nil, errs.ErrArgs.WithDetail("text is not string") }