From 1eb64720d157e8344db2dad3dca7c271f6a57c22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BF=B7=E4=BA=BA=E7=9A=84=E5=B9=BD=E5=B9=BD?= <31199453+charmingYouYou@users.noreply.github.com> Date: Sun, 24 Jul 2022 13:33:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8Dts?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E7=8E=AF=E5=A2=83=E4=B8=8B=E5=8F=91=E9=80=81?= =?UTF-8?q?=E4=BC=81=E4=B8=9A=E5=BE=AE=E4=BF=A1=E9=80=9A=E7=9F=A5=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E9=97=AE=E9=A2=98=20(#1553)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sample/notify.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/sample/notify.js b/sample/notify.js index 7a8f8372..fb857392 100644 --- a/sample/notify.js +++ b/sample/notify.js @@ -97,6 +97,13 @@ let IGOT_PUSH_KEY = ''; let PUSH_PLUS_TOKEN = ''; let PUSH_PLUS_USER = ''; +// =======================================Cool Push设置区域======================================= +//官方文档:https://cp.xuthus.cc/docs +//QQ_SKEY: Cool Push登录授权后推送消息的调用代码Skey +//QQ_MODE: 推送模式详情请登录获取QQ_SKEY后见https://cp.xuthus.cc/feat +let QQ_SKEY = ''; +let QQ_MODE = ''; + //==========================云端环境变量的判断与接收========================= if (process.env.GOTIFY_URL) { GOTIFY_URL = process.env.GOTIFY_URL; @@ -723,9 +730,9 @@ function qywxamNotify(text, desp) { timeout, }; $.post(options_accesstoken, (err, resp, data) => { - html = desp.replace(/\n/g, '
'); - var json = JSON.parse(data); - accesstoken = json.access_token; + let html = desp.replace(/\n/g, '
'); + let json = JSON.parse(data); + let accesstoken = json.access_token; let options; switch (QYWX_AM_AY[4]) {