diff --git a/sample/notify.js b/sample/notify.js index 12b7cfeb..a31ac5d3 100644 --- a/sample/notify.js +++ b/sample/notify.js @@ -203,6 +203,12 @@ async function sendNotify( ) { //提供6种通知 desp += author; //增加作者信息,防止被贩卖等 + if(desp.length>900) { + await sendNotify(text, desp.substr(0,900),params,"\n\n==More=="); + await sendNotify(text, desp.substr(900),params,author); + return; + } + await Promise.all([ serverNotify(text, desp), //微信server酱 pushPlusNotify(text, desp), //pushplus(推送加)