Update notify.js

消息过长进行分段发送。
This commit is contained in:
pharaoh2012 2021-12-06 14:04:26 +08:00 committed by GitHub
parent b5faa6eaaa
commit e89bd52386
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(推送加)