jd_bean_sign.js提供了签到推送通知环境变量,也会打印显示log记录
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
/*
|
||||
京豆签到,自用,可N个京东账号,IOS软件用户请使用 https://raw.githubusercontent.com/NobyDa/Script/master/JD-DailyBonus/JD_DailyBonus.js
|
||||
Node.JS专用
|
||||
更新时间:2020-11-26
|
||||
更新时间:2020-11-27
|
||||
从 github @ruicky改写而来
|
||||
version v0.0.1
|
||||
create by ruicky
|
||||
@ -55,6 +55,8 @@ async function execSign() {
|
||||
try {
|
||||
if (notify.SCKEY || notify.BARK_PUSH || notify.DD_BOT_TOKEN || (notify.TG_BOT_TOKEN && notify.TG_USER_ID) || notify.IGOT_PUSH_KEY) {
|
||||
await exec(`${process.execPath} ${JD_DailyBonusPath} >> ${resultPath}`);
|
||||
const notifyContent = await fs.readFileSync(resultPath, "utf8");
|
||||
console.log(`👇👇👇👇👇👇👇👇👇👇👇LOG记录👇👇👇👇👇👇👇👇👇👇👇\n${notifyContent}\n👆👆👆👆👆👆👆👆👆LOG记录👆👆👆👆👆👆👆👆👆👆👆`);
|
||||
} else {
|
||||
// 如果没有提供通知推送,则打印日志
|
||||
console.log('没有提供通知推送,则打印脚本执行日志')
|
||||
|
Reference in New Issue
Block a user