From 9b81d5251c339d0eb2b1764509b9517f8cfafd0e Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Mon, 18 Sep 2023 17:01:39 +0800 Subject: [PATCH] fix: SendMsg api --- 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 2777d8855..83949903e 100644 --- a/internal/api/msg.go +++ b/internal/api/msg.go @@ -58,7 +58,7 @@ func (m MessageApi) newUserSendMsgReq(c *gin.Context, params *apistruct.SendMsg) options := make(map[string]bool, 5) switch params.ContentType { case constant.Text: - newContent = params.Content["text"].(string) + fallthrough case constant.Picture: fallthrough case constant.Custom: