🌱V2P notify.md
This commit is contained in:
parent
567172ffe4
commit
0849076fb9
@ -1,12 +1,14 @@
|
|||||||
# pushplus
|
# pushplus
|
||||||
|
```
|
||||||
{
|
{
|
||||||
"token": `xxxxxxxxxxxxxxxxxxxx`,
|
"token": `xxxxxxxxxxxxxxxxxxxx`,
|
||||||
"title": `$title$`,
|
"title": `$title$`,
|
||||||
"content": `$body$\n$url$`,
|
"content": `$body$\n$url$`,
|
||||||
"Content-Type": `application/json`
|
"Content-Type": `application/json`
|
||||||
}
|
}
|
||||||
|
```
|
||||||
# telegram
|
# telegram
|
||||||
|
```
|
||||||
Post
|
Post
|
||||||
https://api.telegram.org/botxxxxxxxxxx/
|
https://api.telegram.org/botxxxxxxxxxx/
|
||||||
{
|
{
|
||||||
@ -14,7 +16,9 @@ https://api.telegram.org/botxxxxxxxxxx/
|
|||||||
"chat_id": xxxxxxxxxx,
|
"chat_id": xxxxxxxxxx,
|
||||||
"text": `$title$\n$body$\n$url$`
|
"text": `$title$\n$body$\n$url$`
|
||||||
}
|
}
|
||||||
|
```
|
||||||
# COOKIESJD
|
# COOKIESJD
|
||||||
|
```
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"userName": "",
|
"userName": "",
|
||||||
@ -25,16 +29,21 @@ https://api.telegram.org/botxxxxxxxxxx/
|
|||||||
"cookie": "pt_key=;pt_pin=;"
|
"cookie": "pt_key=;pt_pin=;"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
```
|
||||||
# notify.js
|
# notify.js
|
||||||
|
```
|
||||||
if (typeof $title$ !== "undefined") {
|
if (typeof $title$ !== "undefined") {
|
||||||
botNotify($title$, $body$, $url$)
|
botNotify($title$, $body$, $url$)
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
or
|
||||||
|
```
|
||||||
//if (typeof $title$ !== "undefined") {
|
//if (typeof $title$ !== "undefined") {
|
||||||
botNotify1($title$, $body$, $url$)
|
botNotify1($title$, $body$, $url$)
|
||||||
botNotify2($title$, $body$, $url$)
|
botNotify2($title$, $body$, $url$)
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
```
|
||||||
function botNotify(title, body, url) {
|
function botNotify(title, body, url) {
|
||||||
if (body=== "undefined"){body=""}
|
if (body=== "undefined"){body=""}
|
||||||
if (url==="undefined"){url=""}
|
if (url==="undefined"){url=""}
|
||||||
@ -56,3 +65,4 @@ if (url==="undefined"){url=""}
|
|||||||
console.error('mynotify1 ֪ͨʧ°Ü', e.message)
|
console.error('mynotify1 ֪ͨʧ°Ü', e.message)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
```
|
||||||
Loading…
Reference in New Issue
Block a user