修改通知默认提示信息

This commit is contained in:
hanhh 2021-05-27 19:45:11 +08:00
parent 6d32c86535
commit dc0225f100

View File

@ -7,7 +7,7 @@
* @param text 通知头
* @param desp 通知体
* @param params 某些推送通知方式点击弹窗可跳转, { url: 'https://abc.com' }
* @param author 作者仓库等信息 `脚本免费使用 Byhttps://github.com/whyour/qinglong`
* @param author 作者仓库等信息 `通知 Byhttps://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 作者仓库等信息 `脚本免费使用 Byhttps://github.com/whyour/qinglong`
* @param author 作者仓库等信息 `通知 Byhttps://github.com/whyour/qinglong`
* @returns {Promise<unknown>}
*/
async function sendNotify(
text,
desp,
params = {},
author = '\n\n本脚本免费使用 Byhttps://github.com/whyour/qinglong',
author = '\n\n本通知 Byhttps://github.com/whyour/qinglong',
) {
//提供6种通知
desp += author; //增加作者信息,防止被贩卖等