From 0849076fb9e80ee7b38363b79629402d59710fb1 Mon Sep 17 00:00:00 2001 From: Leon <62660101+Oreomeow@users.noreply.github.com> Date: Thu, 24 Jun 2021 10:48:02 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=B1V2P=20notify.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Conf/Vtop/notify/{notify.json => notify.md} | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) rename Conf/Vtop/notify/{notify.json => notify.md} (95%) diff --git a/Conf/Vtop/notify/notify.json b/Conf/Vtop/notify/notify.md similarity index 95% rename from Conf/Vtop/notify/notify.json rename to Conf/Vtop/notify/notify.md index 79f3357..01a0aa6 100644 --- a/Conf/Vtop/notify/notify.json +++ b/Conf/Vtop/notify/notify.md @@ -1,12 +1,14 @@ # pushplus +``` { "token": `xxxxxxxxxxxxxxxxxxxx`, "title": `$title$`, "content": `$body$\n$url$`, "Content-Type": `application/json` } - +``` # telegram +``` Post https://api.telegram.org/botxxxxxxxxxx/ { @@ -14,7 +16,9 @@ https://api.telegram.org/botxxxxxxxxxx/ "chat_id": xxxxxxxxxx, "text": `$title$\n$body$\n$url$` } +``` # COOKIESJD +``` [ { "userName": "", @@ -25,16 +29,21 @@ https://api.telegram.org/botxxxxxxxxxx/ "cookie": "pt_key=;pt_pin=;" } ] - +``` # notify.js +``` if (typeof $title$ !== "undefined") { botNotify($title$, $body$, $url$) } +``` +or +``` //if (typeof $title$ !== "undefined") { botNotify1($title$, $body$, $url$) botNotify2($title$, $body$, $url$) } - +``` +``` function botNotify(title, body, url) { if (body=== "undefined"){body=""} if (url==="undefined"){url=""} @@ -56,3 +65,4 @@ if (url==="undefined"){url=""} console.error('mynotify1 ֪ͨʧ°Ü', e.message) }) } +```