fix: api send msg update.

This commit is contained in:
Gordon 2023-10-08 11:49:27 +08:00
parent 2bba4d01c4
commit 93e2f9c376

View File

@ -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: