|
|
|
@ -490,6 +490,11 @@ func (m *MessageApi) SendSimpleMessage(c *gin.Context) {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
content, err := jsonutil.JsonMarshal(apistruct.MarkdownTextElem{Content: req.Content})
|
|
|
|
|
if err != nil {
|
|
|
|
|
apiresp.GinError(c, errs.Wrap(err))
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
msgData := &sdkws.MsgData{
|
|
|
|
|
SendID: sendID,
|
|
|
|
|
RecvID: recvID,
|
|
|
|
@ -498,8 +503,8 @@ func (m *MessageApi) SendSimpleMessage(c *gin.Context) {
|
|
|
|
|
SenderPlatformID: constant.AdminPlatformID,
|
|
|
|
|
SessionType: sessionType,
|
|
|
|
|
MsgFrom: constant.UserMsgType,
|
|
|
|
|
ContentType: constant.Text,
|
|
|
|
|
Content: []byte(req.Content),
|
|
|
|
|
ContentType: constant.MarkdownText,
|
|
|
|
|
Content: content,
|
|
|
|
|
OfflinePushInfo: req.OfflinePushInfo,
|
|
|
|
|
Ex: req.Ex,
|
|
|
|
|
}
|
|
|
|
|