From 8e34e0bdde295d0216b004688763706931d189d9 Mon Sep 17 00:00:00 2001 From: wisz2021 Date: Wed, 2 Jun 2021 13:54:10 +0800 Subject: [PATCH] update --- jd_bean_sign.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jd_bean_sign.js b/jd_bean_sign.js index f38d4d91..e5ea7aa8 100644 --- a/jd_bean_sign.js +++ b/jd_bean_sign.js @@ -61,7 +61,7 @@ if ($.isNode()) { .catch((e) => $.logErr(e)) .finally(() => $.done()) async function execSign() { - console.log(`\n开始执行脚本签到,请稍等`) + console.log(`\n开始执行 ${$.name} 签到,请稍等...\n`); try { // if (notify.SCKEY || notify.BARK_PUSH || notify.DD_BOT_TOKEN || (notify.TG_BOT_TOKEN && notify.TG_USER_ID) || notify.IGOT_PUSH_KEY || notify.QQ_SKEY) { // await exec(`${process.execPath} ${JD_DailyBonusPath} >> ${resultPath}`); @@ -73,7 +73,7 @@ async function execSign() { // } await exec(`${process.execPath} ${JD_DailyBonusPath} >> ${resultPath}`); const notifyContent = await fs.readFileSync(resultPath, "utf8"); - console.log(`👇👇👇👇👇👇👇👇👇👇👇LOG记录👇👇👇👇👇👇👇👇👇👇👇\n${notifyContent}\n👆👆👆👆👆👆👆👆👆LOG记录👆👆👆👆👆👆👆👆👆👆👆`); + console.error(`👇👇👇👇👇👇👇👇👇👇👇签到详情👇👇👇👇👇👇👇👇👇👇👇\n${notifyContent}\n👆👆👆👆👆👆👆👆👆签到详情👆👆👆👆👆👆👆👆👆👆👆`); // await exec("node JD_DailyBonus.js", { stdio: "inherit" }); // console.log('执行完毕', new Date(new Date().getTime() + 8 * 3600000).toLocaleDateString()) //发送通知 @@ -106,7 +106,7 @@ async function execSign() { } //运行完成后,删除下载的文件 await deleteFile(resultPath);//删除result.txt - console.log(`\n\n*****************${new Date(new Date().getTime()).toLocaleString('zh', {hour12: false})} 京东账号${$.index} ${$.nickName || $.UserName}京豆签到完成*******************\n\n`); + console.log(`\n\n*****************${new Date(new Date().getTime()).toLocaleString('zh', {hour12: false})} 京东账号${$.index} ${$.nickName || $.UserName} ${$.name}完成*******************\n\n`); } catch (e) { console.log("京东签到脚本执行异常:" + e); }