From e88a7b8f79cfbbcd88438d3ac4b3ace27cf5ebe6 Mon Sep 17 00:00:00 2001 From: yml2213 Date: Sun, 12 Jun 2022 08:39:23 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=85=B3=E9=97=AD=E9=80=9A?= =?UTF-8?q?=E7=9F=A5,=E5=87=BA=E9=94=99=E6=89=8D=E4=BC=9A=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jrttjsb/jrttjsb.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/jrttjsb/jrttjsb.js b/jrttjsb/jrttjsb.js index 173e570..6f5c607 100644 --- a/jrttjsb/jrttjsb.js +++ b/jrttjsb/jrttjsb.js @@ -7,6 +7,7 @@ * cron 1-59/15 6-23 * * * yml2213_javascript_master/jrttjsb.js * * 5-26 完成 签到 宝箱 睡觉 走路 吃饭 阅读(基本黑号)等任务 ,农场看情况加不加 + * 6-12 默认关闭通知,出错才会提示 * * 不要问跟以前的有啥不同,都是开源脚本,自己看就行了 * @@ -25,7 +26,7 @@ const $ = new Env("今日头条极速版"); const notify = $.isNode() ? require("./sendNotify") : ""; -const Notify = 1 //0为关闭通知,1为打开通知,默认为1 +const Notify = 0 //0为关闭通知,1为打开通知,默认为1 const debug = 0 //0为关闭调试,1为打开调试,默认为0 /////////////////////////////////////////////////////////////////// let ckStr = process.env.jrttjsb_data; @@ -179,7 +180,10 @@ async function user_info(doTask) { } } else { console.log(` 用户信息: 失败 ❌ 了呢,原因未知! ${result} `); - msg += `\n 用户信息: 失败 ❌ 了呢,原因未知!`; + msg = `\n 用户信息: 失败 ❌ 了呢,原因未知!`; + message = `\n 用户信息: 失败 ❌ 了呢,原因未知!`; + let notify = require("./sendNotify"); + await notify.sendNotify($.name, message); } }