Skip to content

Commit

Permalink
Update msg.go (#958)
Browse files Browse the repository at this point in the history
fix: send text message by api doesn't work. (#929)
  • Loading branch information
g6619563 authored Aug 28, 2023
1 parent 781b13c commit f4e4bfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func (m *MessageApi) getSendMsgReq(c *gin.Context, req apistruct.SendMsg) (sendM
log.ZDebug(c, "getSendMsgReq", "req", req.Content)
switch req.ContentType {
case constant.Text:
text, ok := req.Content["content"].(string)
text, ok := req.Content["text"].(string)
if !ok {
return nil, errs.ErrArgs.WithDetail("text is not string")
}
Expand Down

0 comments on commit f4e4bfd

Please sign in to comment.