mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-16 19:19:23 +08:00
Merge main into sweep/imctl-module
This commit is contained in:
commit
afb1cd47e0
@ -170,7 +170,7 @@ func (m *MessageApi) getSendMsgReq(c *gin.Context, req apistruct.SendMsg) (sendM
|
|||||||
log.ZDebug(c, "getSendMsgReq", "req", req.Content)
|
log.ZDebug(c, "getSendMsgReq", "req", req.Content)
|
||||||
switch req.ContentType {
|
switch req.ContentType {
|
||||||
case constant.Text:
|
case constant.Text:
|
||||||
text, ok := req.Content["content"].(string)
|
text, ok := req.Content["text"].(string)
|
||||||
if !ok {
|
if !ok {
|
||||||
return nil, errs.ErrArgs.WithDetail("text is not string")
|
return nil, errs.ErrArgs.WithDetail("text is not string")
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user