diff --git a/lib/helper/notify.js b/lib/helper/notify.js index 3ebe504..d965b1d 100644 --- a/lib/helper/notify.js +++ b/lib/helper/notify.js @@ -619,6 +619,7 @@ function ddBotNotify(text, desp) { function qywxAmNotify(text, desp) { return new Promise(resolve => { + desp=desp.replace(/\n/g, '
'); if (QYWX_AM) { const QYWX_AM_AY = QYWX_AM.split(','); send({ @@ -646,9 +647,15 @@ function qywxAmNotify(text, desp) { touser: `${QYWX_AM_AY[2]}`, agentid: `${QYWX_AM_AY[3]}`, safe: '0', - msgtype: 'text', - text: { - content: `${text}\n\n${desp}`, + msgtype: 'mpnews', + mpnews : { + articles:[ + { + title: `${text}`, + thumb_media_id: `${QYWX_AM_AY[4]}`, + content: `${desp}`, + } + ] }, }, config: {