From 82cca6345dc5c8826103cbaab6bb9666b98a824b Mon Sep 17 00:00:00 2001 From: lxk0301 <778732665@qq.com> Date: Thu, 26 Nov 2020 13:49:54 +0800 Subject: [PATCH] =?UTF-8?q?jd=5Fbean=5Fsign.js=E8=84=9A=E6=9C=AC=E7=9B=AE?= =?UTF-8?q?=E5=89=8DBark=20APP=E6=8E=A8=E9=80=81=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E5=AF=B9=E6=8E=A8=E9=80=81=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E9=95=BF=E5=BA=A6=E6=9C=89=E9=99=90=E5=88=B6=EF=BC=8C=E4=BC=9A?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E6=AD=A4=E8=84=9A=E6=9C=AC=E6=8E=A8=E9=80=81?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=EF=BC=8C=E6=95=85=E4=BD=BF=E7=94=A8=E4=BA=86?= =?UTF-8?q?BARK=E6=8E=A8=E9=80=81=E7=9A=84=EF=BC=8C=E6=AD=A4=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E4=BC=9A=E9=BB=98=E8=AE=A4=E6=94=B9=E6=88=90=E6=8E=A8?= =?UTF-8?q?=E9=80=81=E7=AE=80=E6=B4=81=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd_bean_sign.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jd_bean_sign.js b/jd_bean_sign.js index 80c119a7..b1bb810b 100644 --- a/jd_bean_sign.js +++ b/jd_bean_sign.js @@ -1,7 +1,7 @@ /* 京豆签到,自用,可N个京东账号,IOS软件用户请使用 https://raw.githubusercontent.com/NobyDa/Script/master/JD-DailyBonus/JD_DailyBonus.js Node.JS专用 -更新时间:2020-11-17 +更新时间:2020-11-26 从 github @ruicky改写而来 version v0.0.1 create by ruicky @@ -42,7 +42,7 @@ if ($.isNode()) { $.nickName = ''; await TotalBean(); console.log(`*****************开始京东账号${$.index} ${$.nickName || $.UserName}京豆签到*******************\n`); - console.log(`⚠️⚠️⚠️⚠️目前Bark APP推送通知消息失败的,请换用其他通知方式,Bark对推送内容长度有限制 ⚠️⚠️⚠️⚠️\n`) + console.log(`⚠️⚠️⚠️⚠️目前Bark APP推送通知消息对推送内容长度有限制,如使用此推送方式脚本会默认转换成简洁内容推送 ⚠️⚠️⚠️⚠️\n`) await changeFile(content); await execSign(); } @@ -71,6 +71,7 @@ async function execSign() { const barkContentStart = notifyContent.indexOf('【签到概览】') const barkContentEnd = notifyContent.length; if (process.env.JD_BEAN_SIGN_STOP_NOTIFY === 'true') return + if (notify.BARK_PUSH) process.env.JD_BEAN_SIGN_NOTIFY_SIMPLE = 'true'; if (process.env.JD_BEAN_SIGN_NOTIFY_SIMPLE === 'true') { if (barkContentStart > -1 && barkContentEnd > -1) { BarkContent = notifyContent.substring(barkContentStart, barkContentEnd);