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: