diff --git a/business/jxutils/ddmsg/ddmsg.go b/business/jxutils/ddmsg/ddmsg.go index 5c1a3b6d3..5b855ab90 100644 --- a/business/jxutils/ddmsg/ddmsg.go +++ b/business/jxutils/ddmsg/ddmsg.go @@ -31,7 +31,7 @@ func SendUserMessage(msgType, userID, title, content string) (err error) { for _, auth := range authList { if auth.Type == dingding.AuthTypeStaff || auth.Type == weixin.AuthTypeMP { findOneMethod = true - if msgType == dingdingapi.MsgTypeMarkdown && len(content) > dingdingapi.MaxWorkContentLen { + if len(content) > dingdingapi.MaxWorkContentLen { content = content[:dingdingapi.MaxWorkContentLen-4] + "..." } err = SendDDUserMessage(msgType, auth.AuthID, title, content)