fix: api send msg update. (#1163)

This commit is contained in:
Gordon
2023-10-09 09:08:41 +08:00
committed by GitHub
parent 2bba4d01c4
commit cd5a506419
+1 -1
View File
@@ -58,7 +58,7 @@ func (m MessageApi) newUserSendMsgReq(c *gin.Context, params *apistruct.SendMsg)
options := make(map[string]bool, 5) options := make(map[string]bool, 5)
switch params.ContentType { switch params.ContentType {
case constant.Text: case constant.Text:
newContent = params.Content["text"].(string) fallthrough
case constant.Picture: case constant.Picture:
fallthrough fallthrough
case constant.Custom: case constant.Custom: