mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-28 23:46:06 +08:00
Update notify.js
消息过长进行分段发送。
This commit is contained in:
parent
b5faa6eaaa
commit
e89bd52386
|
@ -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(推送加)
|
||||
|
|
Loading…
Reference in New Issue
Block a user