mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-29 11:19:34 +08:00
修改通知默认提示信息
This commit is contained in:
parent
6d32c86535
commit
dc0225f100
|
@ -7,7 +7,7 @@
|
|||
* @param text 通知头
|
||||
* @param desp 通知体
|
||||
* @param params 某些推送通知方式点击弹窗可跳转, 例:{ url: 'https://abc.com' }
|
||||
* @param author 作者仓库等信息 例:`本脚本免费使用 By:https://github.com/whyour/qinglong`
|
||||
* @param author 作者仓库等信息 例:`本通知 By:https://github.com/whyour/qinglong`
|
||||
*/
|
||||
|
||||
const querystring = require('querystring');
|
||||
|
@ -151,14 +151,14 @@ if (process.env.PUSH_PLUS_USER) {
|
|||
* @param text 通知头
|
||||
* @param desp 通知体
|
||||
* @param params 某些推送通知方式点击弹窗可跳转, 例:{ url: 'https://abc.com' }
|
||||
* @param author 作者仓库等信息 例:`本脚本免费使用 By:https://github.com/whyour/qinglong`
|
||||
* @param author 作者仓库等信息 例:`本通知 By:https://github.com/whyour/qinglong`
|
||||
* @returns {Promise<unknown>}
|
||||
*/
|
||||
async function sendNotify(
|
||||
text,
|
||||
desp,
|
||||
params = {},
|
||||
author = '\n\n本脚本免费使用 By:https://github.com/whyour/qinglong',
|
||||
author = '\n\n本通知 By:https://github.com/whyour/qinglong',
|
||||
) {
|
||||
//提供6种通知
|
||||
desp += author; //增加作者信息,防止被贩卖等
|
||||
|
|
Loading…
Reference in New Issue
Block a user