From cd5a5064198ffcf28c95fe0c47db4c5e636da71f Mon Sep 17 00:00:00 2001 From: Gordon <46924906+FGadvancer@users.noreply.github.com> Date: Mon, 9 Oct 2023 09:08:41 +0800 Subject: [PATCH] fix: api send msg update. (#1163) --- 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 2777d88558..83949903e8 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: