更新 'test.js'
This commit is contained in:
parent
867321938c
commit
1b66b551b2
16
test.js
16
test.js
@ -0,0 +1,16 @@
|
||||
const notify = require('./sendNotify')
|
||||
|
||||
/**
|
||||
* sendNotify 推送通知功能
|
||||
* @param text 通知头
|
||||
* @param desp 通知体
|
||||
* @param params 某些推送通知方式点击弹窗可跳转, 例:{ url: 'https://abc.com' }
|
||||
* @param author 作者仓库等信息 例:`本通知 By:https://github.com/whyour/qinglong`
|
||||
* @returns {Promise<unknown>}
|
||||
*/
|
||||
|
||||
async function main(){
|
||||
console.log("main");
|
||||
await notify.sendNotify("测试通知", "aaa")
|
||||
}
|
||||
main();
|
Loading…
Reference in New Issue
Block a user